summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-01-28 09:25:38 +0000
committerTim Angus <tim@ngus.net>2014-08-28 11:01:50 +0100
commit2bc434853b64c48907bddaa7bddacad0e2606b61 (patch)
tree7646312338cd25881260e300c5d44dd0ff8dcdcb /src/sys
parent0319df4301e9eca103f35ce2ff7e8f4c7b450c03 (diff)
The in_mouse stuff makes no sense in SDL2
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_win32.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/sys/sys_win32.c b/src/sys/sys_win32.c
index abb38b78..034d1572 100644
--- a/src/sys/sys_win32.c
+++ b/src/sys/sys_win32.c
@@ -644,10 +644,6 @@ dialogResult_t Sys_Dialog( dialogType_t type, const char *message, const char *t
}
}
-#ifndef DEDICATED
-static qboolean SDL_VIDEODRIVER_externallySet = qfalse;
-#endif
-
/*
==============
Sys_GLimpSafeInit
@@ -657,14 +653,6 @@ Windows specific "safe" GL implementation initialisation
*/
void Sys_GLimpSafeInit( void )
{
-#ifndef DEDICATED
- if( !SDL_VIDEODRIVER_externallySet )
- {
- // Here, we want to let SDL decide what do to unless
- // explicitly requested otherwise
- _putenv( "SDL_VIDEODRIVER=" );
- }
-#endif
}
/*
@@ -676,25 +664,6 @@ Windows specific GL implementation initialisation
*/
void Sys_GLimpInit( void )
{
-#ifndef DEDICATED
- if( !SDL_VIDEODRIVER_externallySet )
- {
- // It's a little bit weird having in_mouse control the
- // video driver, but from ioq3's point of view they're
- // virtually the same except for the mouse input anyway
- if( Cvar_VariableIntegerValue( "in_mouse" ) == -1 )
- {
- // Use the windib SDL backend, which is closest to
- // the behaviour of idq3 with in_mouse set to -1
- _putenv( "SDL_VIDEODRIVER=windib" );
- }
- else
- {
- // Use the DirectX SDL backend
- _putenv( "SDL_VIDEODRIVER=directx" );
- }
- }
-#endif
}
/*
@@ -708,21 +677,11 @@ void Sys_PlatformInit( void )
{
#ifndef DEDICATED
TIMECAPS ptc;
- const char *SDL_VIDEODRIVER = getenv( "SDL_VIDEODRIVER" );
#endif
Sys_SetFloatEnv();
#ifndef DEDICATED
- if( SDL_VIDEODRIVER )
- {
- Com_Printf( "SDL_VIDEODRIVER is externally set to \"%s\", "
- "in_mouse -1 will have no effect\n", SDL_VIDEODRIVER );
- SDL_VIDEODRIVER_externallySet = qtrue;
- }
- else
- SDL_VIDEODRIVER_externallySet = qfalse;
-
if(timeGetDevCaps(&ptc, sizeof(ptc)) == MMSYSERR_NOERROR)
{
timerResolution = ptc.wPeriodMin;