From be9f283d746e0aed84880976ac67e79b6126fd2f Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 23 Oct 2007 17:52:36 +0000
Subject: [PATCH] If SDL_VIDEODRIVER is not set on startup, set it to "directx"

---
 src/conio/SDL_win32_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/conio/SDL_win32_main.c b/src/conio/SDL_win32_main.c
index 06ff1a90c9..1cf82419df 100644
--- a/src/conio/SDL_win32_main.c
+++ b/src/conio/SDL_win32_main.c
@@ -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 ) {
-- 
GitLab