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:
parent
bb8605fa3b
commit
7bb8344d3b
@ -255,10 +255,12 @@ void SDLSetScreen()
|
|||||||
//SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
//SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
||||||
//SDL_SetWindowResizable(sdl_window, SDL_TRUE);
|
//SDL_SetWindowResizable(sdl_window, SDL_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_SetWindowSize(sdl_window, size.X, size.Y);
|
|
||||||
SDL_RenderSetIntegerScale(sdl_renderer, newFrameOpsNorm.forceIntegerScaling ? SDL_TRUE : SDL_FALSE);
|
SDL_RenderSetIntegerScale(sdl_renderer, newFrameOpsNorm.forceIntegerScaling ? SDL_TRUE : SDL_FALSE);
|
||||||
LoadWindowPosition();
|
if (!(newFrameOpsNorm.resizable && SDL_GetWindowFlags(sdl_window) & SDL_WINDOW_MAXIMIZED))
|
||||||
|
{
|
||||||
|
SDL_SetWindowSize(sdl_window, size.X, size.Y);
|
||||||
|
LoadWindowPosition();
|
||||||
|
}
|
||||||
UpdateFpsLimit();
|
UpdateFpsLimit();
|
||||||
if (newFrameOpsNorm.fullscreen)
|
if (newFrameOpsNorm.fullscreen)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user