From abb129a8ca9447c44772001bfcb50af4bde857c6 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 23 Oct 2007 17:48:38 +0000
Subject: [PATCH] Override SDL_VIDEODRIVER on failure always.  This allows
 SyncTERM to always run with directx mode forced and still work.

---
 src/conio/sdlfuncs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conio/sdlfuncs.c b/src/conio/sdlfuncs.c
index b028059c7d..4b5470193a 100644
--- a/src/conio/sdlfuncs.c
+++ b/src/conio/sdlfuncs.c
@@ -629,7 +629,8 @@ int SDL_main_env(int argc, char **argv, char **env)
 #ifdef _WIN32
 		/* Fail to windib (ie: No mouse attached) */
 		if(sdl.Init(SDL_INIT_VIDEO)) {
-			if(getenv("SDL_VIDEODRIVER")==NULL) {
+			/* if(getenv("SDL_VIDEODRIVER")==NULL) */	/* Eliminated this check 10/23/07 - default is windib now, so override directx if it doesn't work */
+			{
 				putenv("SDL_VIDEODRIVER=windib");
 				WinExec(GetCommandLine(), SW_SHOWDEFAULT);
 				return(0);
-- 
GitLab