Fix the Maximized property of windows shortcuts not being respected

By not resizing the window if it's resizeable and is somehow already maximized.
This commit is contained in:
Tamás Bálint Misius 2023-10-05 21:22:25 +02:00
parent bb8605fa3b
commit 7bb8344d3b
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -255,10 +255,12 @@ void SDLSetScreen()
//SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
//SDL_SetWindowResizable(sdl_window, SDL_TRUE);
}
SDL_SetWindowSize(sdl_window, size.X, size.Y);
SDL_RenderSetIntegerScale(sdl_renderer, newFrameOpsNorm.forceIntegerScaling ? SDL_TRUE : SDL_FALSE);
if (!(newFrameOpsNorm.resizable && SDL_GetWindowFlags(sdl_window) & SDL_WINDOW_MAXIMIZED))
{
SDL_SetWindowSize(sdl_window, size.X, size.Y);
LoadWindowPosition();
}
UpdateFpsLimit();
if (newFrameOpsNorm.fullscreen)
{