]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1970: win32: high-dpi support can be improved v9.0.1970
authorKen Takata <kentkt@csc.jp>
Mon, 2 Oct 2023 19:26:03 +0000 (21:26 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 2 Oct 2023 19:26:03 +0000 (21:26 +0200)
commit7086b3e76a81cf87592077d54e0ef46a60006c2c
tree707b2d837341c951b62f9aa0fabfeb0b185ca962
parent3bd7fa12e146c6051490d048a4acbfba974eeb04
patch 9.0.1970: win32: high-dpi support can be improved

Problem:  win32: high-dpi support can be improved
Solution: implement WM_GETDPISCALEDSIZE

win32: Better support of Per-Monitor V2 High DPI

Implement WM_GETDPISCALEDSIZE.
It is not so easy to calculate the new size without actually changing
the size. So, this returns an approximate size.

This doesn't work well when a bitmap font (e.g. FixedSys) is selected,
but I think this is acceptable.

closes: #11812
closes: #13252

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ken Takata <kentkt@csc.jp>
src/gui_w32.c
src/version.c