1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-03 01:41:35 +00:00

Merge branch 'windows_aero_snap' into 'master'

Fix windows aero snap with borderless window (#5394)

See merge request OpenMW/openmw!1370
This commit is contained in:
psi29a 2021-11-08 07:13:08 +00:00
commit 9b7dfcac6b
2 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,7 @@
Bug #5207: Loose summons can be present in scene
Bug #5377: console does not appear after using menutest in inventory
Bug #5379: Wandering NPCs falling through cantons
Bug #5394: Windows snapping no longer works
Bug #5453: Magic effect VFX are offset for creatures
Bug #5483: AutoCalc flag is not used to calculate spells cost
Bug #5508: Engine binary links to Qt without using it

View file

@ -546,6 +546,10 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
if(fullscreen)
flags |= SDL_WINDOW_FULLSCREEN;
// Allows for Windows snapping features to properly work in borderless window
SDL_SetHint("SDL_BORDERLESS_WINDOWED_STYLE", "1");
SDL_SetHint("SDL_BORDERLESS_RESIZABLE_STYLE", "1");
if (!windowBorder)
flags |= SDL_WINDOW_BORDERLESS;