mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-29 07:32:25 +00:00
Fix vid_restart partial for real fullscreen mode
This commit is contained in:
parent
c096a86ce8
commit
387430a01f
2 changed files with 3 additions and 1 deletions
|
@ -1994,7 +1994,7 @@ void R_VidRestart_f( const idCmdArgs &args ) {
|
||||||
parms.stereo = false;
|
parms.stereo = false;
|
||||||
|
|
||||||
if ( GLimp_SetScreenParms( parms ) ) {
|
if ( GLimp_SetScreenParms( parms ) ) {
|
||||||
common->Printf( "'vid_restart partial' succeeded in changing resolution and/or fullscreen mode" );
|
common->Printf( "'vid_restart partial' succeeded in changing resolution and/or fullscreen mode\n" );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -668,6 +668,8 @@ bool GLimp_SetScreenParms(glimpParms_t parms) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_SetWindowFullscreen( window, SDL_WINDOW_FULLSCREEN );
|
||||||
|
|
||||||
/* The SDL doku says, that SDL_SetWindowSize() shouldn't be
|
/* The SDL doku says, that SDL_SetWindowSize() shouldn't be
|
||||||
used on fullscreen windows. But at least in my test with
|
used on fullscreen windows. But at least in my test with
|
||||||
SDL 2.0.9 the subsequent SDL_GetWindowDisplayMode() fails
|
SDL 2.0.9 the subsequent SDL_GetWindowDisplayMode() fails
|
||||||
|
|
Loading…
Reference in a new issue