Files
test2/intern
Harley Acheson 4fb052f08d 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
2021-05-21 09:34:58 -07:00
..
2021-05-21 22:23:07 +10:00
2020-10-19 08:43:08 -07:00
2021-05-21 22:23:07 +10:00
2020-10-19 08:12:33 -07:00
2021-03-12 00:51:29 +11:00
2020-11-19 17:19:48 +01:00