mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-08 17:32:14 +00:00
Windowed r_mode -2 now allowed
This commit is contained in:
parent
71398275bf
commit
2fff41d467
1 changed files with 0 additions and 10 deletions
|
@ -392,8 +392,6 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
|
||||||
glConfig.vidWidth = videoInfo->current_w;
|
glConfig.vidWidth = videoInfo->current_w;
|
||||||
glConfig.vidHeight = videoInfo->current_h;
|
glConfig.vidHeight = videoInfo->current_h;
|
||||||
glConfig.windowAspect = displayAspect;
|
glConfig.windowAspect = displayAspect;
|
||||||
fullscreen = qtrue;
|
|
||||||
noborder = qtrue;
|
|
||||||
}
|
}
|
||||||
else if ( !R_GetModeInfo( &glConfig.vidWidth, &glConfig.vidHeight, &glConfig.windowAspect, mode ) )
|
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;
|
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);
|
err = GLimp_SetMode(mode, fullscreen, noborder);
|
||||||
|
|
||||||
switch ( err )
|
switch ( err )
|
||||||
|
|
Loading…
Reference in a new issue