aboutsummaryrefslogtreecommitdiff
path: root/src/core/debugger/gdbstub_arch.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-02-12 19:51:41 -0500
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-02-12 21:58:49 -0500
commitd6677b50f68f8c1733ea91403f590b5c94fabc18 (patch)
tree4ac8ed31d589093bc2065de394e02a13aa7d8602 /src/core/debugger/gdbstub_arch.cpp
parent8b74047b1b4eac10c6152a18920d0a8e1861fecd (diff)
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.
Diffstat (limited to 'src/core/debugger/gdbstub_arch.cpp')
0 files changed, 0 insertions, 0 deletions