Morph d6677b50f6 main: Fix borderless fullscreen for high dpi scaled displays
On Windows, a borderless window will be treated the same as exclusive fullscreen
when the window geometry matches the physical dimensions of the screen.
However, with High DPI scaling, when the devicePixelRatioF() is > 1, the borderless
window apparently is not treated as exclusive fullscreen and functions correctly.
One can verify and replicate this behavior by using a high resolution (4K) display,
and switching between 100% and 200% scaling in Windows' display settings.
At 100%, without the addition of 1, it is treated as exclusive fullscreen.
At 200%, with or without the addition of 1, it is treated as borderless windowed.
Therefore, we can use (read: abuse) this difference in behavior to fix this issue for
those with higher resolution displays when the Qt scaling ratio is > 1.
Should this behavior be changed in the future, please revisit this workaround.
2023-02-12 21:58:49 -05:00
..
2022-08-09 05:00:37 -07:00
2023-02-05 12:40:57 +11:00
2023-02-05 12:40:57 +11:00
2022-07-27 12:53:49 +02:00
2022-12-13 16:42:00 -05:00
2023-01-18 15:49:47 +01:00
2022-09-04 21:36:35 -04:00
2022-07-27 12:53:49 +02:00
2022-07-27 12:53:49 +02:00