diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-08-13 00:49:09 +0300 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-09-06 10:16:10 +0300 |
commit | 8fb4fd9a189bd18661ed9dd9e859ddae4dc6f415 (patch) | |
tree | 6069a0b4b1d9ad2cbb56a6a42a8961eacd7499f0 /audio/fmt-conversion.h | |
parent | 73f16b54316cf3bcb7bfd12501ee5f38c2146d58 (diff) | |
download | mpv-8fb4fd9a189bd18661ed9dd9e859ddae4dc6f415.tar.bz2 mpv-8fb4fd9a189bd18661ed9dd9e859ddae4dc6f415.tar.xz |
win32: initial position: center with borders
Previously, the initial positioning and fit ignored the borders, and
centered the content (the video itself) at the working area.
Now, the initial positioning centers the window, by subtracting the
borders (if needed) from the target area for the initial fit/position.
While this does mean that the initial maximum content area is now
smaller than before, ultimately this has no impact on the window size,
because fit_on_screen is called later and, if needed, further shrinks
the window to fit the borders too - but without centering the window.
So the net impact of this commit is only the initial positioning (same
size as before), which now centers the window instead of the content.
Note that on Windows 10 the borders include invisible areas at the
sides and bottom of the window (for mouse edge-drag), so visibly the
window is nearer to the top than to the bottom, but these are the
metrics we have (fit_on_screen uses the same border size values).
On Windows 7 it looks perfectly centered.
Diffstat (limited to 'audio/fmt-conversion.h')
0 files changed, 0 insertions, 0 deletions