Skip to content
Snippets Groups Projects
Commit be9f283d authored by deuce's avatar deuce
Browse files

If SDL_VIDEODRIVER is not set on startup, set it to "directx"

parent 5d8946c9
Branches
Tags
No related merge requests found
......@@ -200,6 +200,10 @@ int console_main(int argc, char *argv[], char **env)
int n;
char *bufp, *appname;
if(getenv("SDL_VIDEODRIVER")==NULL) {
putenv("SDL_VIDEODRIVER=directx");
}
/* Get the class name from argv[0] */
appname = argv[0];
if ( (bufp=strrchr(argv[0], '\\')) != NULL ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment