Recreate window when toggling "altFullscreen" while fullscreen is enabled
Fixes bug where half of the window gets cut off
This commit is contained in:
parent
3fb134f814
commit
45ee6780d9
@ -196,7 +196,7 @@ int SDLOpen()
|
|||||||
void SDLSetScreen(int scale_, bool resizable_, bool fullscreen_, bool altFullscreen_, bool forceIntegerScaling_)
|
void SDLSetScreen(int scale_, bool resizable_, bool fullscreen_, bool altFullscreen_, bool forceIntegerScaling_)
|
||||||
{
|
{
|
||||||
// bool changingScale = scale != scale_;
|
// bool changingScale = scale != scale_;
|
||||||
bool changingFullscreen = fullscreen_ != fullscreen;
|
bool changingFullscreen = fullscreen_ != fullscreen || (altFullscreen_ != altFullscreen && fullscreen);
|
||||||
bool changingResizable = resizable != resizable_;
|
bool changingResizable = resizable != resizable_;
|
||||||
scale = scale_;
|
scale = scale_;
|
||||||
fullscreen = fullscreen_;
|
fullscreen = fullscreen_;
|
||||||
|
Loading…
Reference in New Issue
Block a user