mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
(Windows) Fixed an issue with reliably launching games.
This commit is contained in:
parent
88235a0f06
commit
f7207edca5
|
@ -154,11 +154,9 @@ namespace Renderer
|
||||||
// For Windows, always set the mode to windowed, as full screen mode seems to
|
// For Windows, always set the mode to windowed, as full screen mode seems to
|
||||||
// behave quite erratic. There may be a proper fix for this, but for now windowed
|
// behave quite erratic. There may be a proper fix for this, but for now windowed
|
||||||
// mode seems to behave well and it's almost completely seamless, especially with
|
// mode seems to behave well and it's almost completely seamless, especially with
|
||||||
// a hidden taskbar. If filling the whole screen, then remove the window border.
|
// a hidden taskbar. As well, setting SDL_WINDOW_BORDERLESS introduces issues as
|
||||||
if (windowWidth < displayMode.w || windowHeight < displayMode.h)
|
// well so unfortunately this needs to be avoided.
|
||||||
windowFlags = getWindowFlags();
|
windowFlags = getWindowFlags();
|
||||||
else
|
|
||||||
windowFlags = SDL_WINDOW_BORDERLESS | getWindowFlags();
|
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
// This seems to be the only full window mode that somehow works on macOS as a real
|
// This seems to be the only full window mode that somehow works on macOS as a real
|
||||||
// fullscreen mode will do lots of weird stuff like preventing window switching
|
// fullscreen mode will do lots of weird stuff like preventing window switching
|
||||||
|
|
Loading…
Reference in a new issue