diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-14 23:04:57 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-03-18 02:22:28 +0000 |
commit | bb15c506586b4c5d36b6b64350b2e9bfb14804a2 (patch) | |
tree | d5a46bab4f7f20200f64aedd363636be19fa7ba6 /video/out/vo_vaapi.c | |
parent | 1764d772adb8f18b05dc639e2813f6b23aeb4ca6 (diff) | |
download | mpv-bb15c506586b4c5d36b6b64350b2e9bfb14804a2.tar.bz2 mpv-bb15c506586b4c5d36b6b64350b2e9bfb14804a2.tar.xz |
win32: adjust top border offset when title bar is disabled
Windows 11 draws border regardless, so we are 1px off on window size,
blending border with one line of video. Fix that by adding the border to
our internal windows size calculation.
Windows 10 on the other hand has a bug where specifying left and top NC
area will trigger title bar drawn in full height always. Keep old
behaviour in this case. Also while there is similar "visible" border
there, it seems to be transparent on Windows 10.
For high contrast themes, don't adjust title bar height and instead
remove WS_CAPTION to have the same border all around the window, as DWM
doesn't make borders invisible in this case.
Diffstat (limited to 'video/out/vo_vaapi.c')
0 files changed, 0 insertions, 0 deletions