Blender Git Loki
Git Commits -> Revision 4fb052f
Revision 4fb052f by Harley Acheson (master) May 21, 2021, 16:34 (GMT) |
Fix T88384: Improved Win32 Window Sizing and Positioning When creating Win32 windows, the sizes and placements can be out by a small amount, mostly noticeable near monitor edges. This is because Windows 10 includes a thin invisible border (typically 7 pixels) when determining position. Therefore the correct values can sometimes be just outside the monitor bounds, but we clamp them at those bounds. This patch fixes this by first clamping the requested values to monitor bounds, adjusting for window chrome with AdjustWindowRectEx(), and then using those adjusted values in CreateWindowExW(). see D11314 for more details. Differential Revision: https://developer.blender.org/D11314 Reviewed by Ray Molenkamp |
Commit Details:
Full Hash: 4fb052f08dfd085bb0c9015add32a5d5063caf54
Parent Commit: 24deeee
Lines Changed: +20, -14
1 Modified Path:
/intern/ghost/intern/GHOST_WindowWin32.cpp (+20, -14) (Diff)