Windowed r_mode -2 now allowed

This commit is contained in:
Andrei Drexler 2011-03-15 13:07:54 +00:00
parent 71398275bf
commit 2fff41d467

View file

@ -392,8 +392,6 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
glConfig.vidWidth = videoInfo->current_w;
glConfig.vidHeight = videoInfo->current_h;
glConfig.windowAspect = displayAspect;
fullscreen = qtrue;
noborder = qtrue;
}
else if ( !R_GetModeInfo( &glConfig.vidWidth, &glConfig.vidHeight, &glConfig.windowAspect, mode ) )
{
@ -692,14 +690,6 @@ static qboolean GLimp_StartDriverAndSetMode(int mode, qboolean fullscreen, qbool
fullscreen = qfalse;
}
if (!fullscreen && mode == -2)
{
ri.Printf( PRINT_ALL, "Windowed not allowed with r_mode -2\n");
ri.Cvar_Set( "r_fullscreen", "1" );
r_fullscreen->modified = qfalse;
fullscreen = qtrue;
}
err = GLimp_SetMode(mode, fullscreen, noborder);
switch ( err )