mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
b03b833a4d
On Windows, to set a window's size, in addition to the size of the client area, the width and height of the window's "frame" must be included in the dimensions passed to SetWindowPos() which burdens us in needing to know the exact size of the window frame so that we can properly account for its dimensions. Previously, we used AdjustWindowRect() to account for the frame's dimensions, but the size of a window's frame can change depending on the DPI of the monitor on which it is placed, and it appears that neither AdjustWindowRect() nor AdjustWindowRectEx() account for this automatically. Instead, we use AdjustWindowRectExForDpi(), passing in the window's DPI, so that we properly calculate the window's size. |
||
---|---|---|
.. | ||
examples | ||
src | ||
build.rs | ||
Cargo.toml | ||
LICENSE.md |