mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-27 05:37:25 +00:00
fix windows aero snap
This commit is contained in:
parent
3f48d67d8e
commit
c489b77385
@ -18,6 +18,7 @@
|
||||
Bug #5120: Scripted object spawning updates physics system
|
||||
Bug #5207: Loose summons can be present in scene
|
||||
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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user