mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-05-13 16:00:14 -04:00
rend_SetPreferredState: allow changing resolution and fullscreen mode at the same time
This commit is contained in:
@@ -443,7 +443,7 @@ int opengl_Setup(oeApplication *app, const int *width, const int *height) {
|
||||
SDL_SetWindowRelativeMouseMode(GSDLWindow, grabMouse);
|
||||
SDL_SetWindowKeyboardGrab(GSDLWindow, grabMouse);
|
||||
|
||||
SDL_SetWindowFullscreen(GSDLWindow, Game_fullscreen);
|
||||
rend_SetFullScreen(Game_fullscreen);
|
||||
} else if (!Game_fullscreen) {
|
||||
SDL_SetWindowSize(GSDLWindow, winw, winh);
|
||||
}
|
||||
@@ -1140,6 +1140,7 @@ void rend_SetGammaValue(float val) {
|
||||
void rend_SetFullScreen(bool fullscreen) {
|
||||
if (GSDLWindow) {
|
||||
SDL_SetWindowFullscreen(GSDLWindow, fullscreen);
|
||||
SDL_SyncWindow(GSDLWindow);
|
||||
}
|
||||
|
||||
if (fullscreen) {
|
||||
|
||||
Reference in New Issue
Block a user