summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-04-17 15:18:27 +0300
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2021-04-23 10:45:51 +0300
commite00ae12bbb2ddb448a6241a73df77978fff8e60a (patch)
treee4d558a1a6091c76a47cf07dc7ee0f55bdcb8dbd /input
parentef1d0b2cdb43121f0138dfb39f516aee9d7314ad (diff)
downloadmpv-e00ae12bbb2ddb448a6241a73df77978fff8e60a.tar.bz2
mpv-e00ae12bbb2ddb448a6241a73df77978fff8e60a.tar.xz
win32: fit_window_on_screen: ensure top edge is inside
Previously, because the video (client area) was centered but the top and bottom borders are uneven (title is taller), then if the window is shrunk vertically to just-fit the desktop - the top edge of the title bar ended above the top edge of the display. This is a state which Windows prevents during manual move, but apparently it's not rejected at the Windows API. Now we ensure it doesn't happen, and nudge the window down to align the top edges if necessary. This is a commulative regression of commits 981048e0 and 364af7c6. To clarify functionality, this includes a no-op change: fit_rect was renamed to fit_rect_size and it now takes explicit width and height, because it only used the width/height of rc2 anyway. Fixes #6695
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions