Fix window position when switching to windowed mode
This commit is contained in:
parent
70680279d1
commit
c77638bb18
1 changed files with 1 additions and 1 deletions
|
@ -584,8 +584,8 @@ static SDL_Window * GFX_SetSDLWindowMode(Bit16u width, Bit16u height, bool fulls
|
|||
SDL_SetWindowFullscreen(sdl.window,
|
||||
sdl.desktop.full.display_res ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_FULLSCREEN);
|
||||
} else {
|
||||
SDL_SetWindowFullscreen(sdl.window, 0);
|
||||
SDL_SetWindowSize(sdl.window, width, height);
|
||||
SDL_SetWindowFullscreen(sdl.window, 0);
|
||||
}
|
||||
// Maybe some requested fullscreen resolution is unsupported?
|
||||
finish:
|
||||
|
|
Loading…
Add table
Reference in a new issue