diff options
author | wm4 <wm4@nowhere> | 2014-09-09 18:54:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-10 00:48:07 +0200 |
commit | 670f965f1acef64069821df38edad1e64c289075 (patch) | |
tree | 45d75f8c3edbcf664986b883d47f4ea1653033a2 /input | |
parent | e1e8b07cfa04584000f7d203e5a8b71cb7b3f0a8 (diff) | |
download | mpv-670f965f1acef64069821df38edad1e64c289075.tar.bz2 mpv-670f965f1acef64069821df38edad1e64c289075.tar.xz |
win32: don't request window size larger than the screen
An attempt at fixing #1070. Apparently something goes wrong if the
video size is equal to the screen size. Since the window decorations
add to the window size, it must actually be larger than the screen.
Actually I don't know what exactly is going wrong, but since this
commit also slightly improves the behavior otherwise, it's a win
anyway.
Try to keep the window size strictly below screen size, even accounting
for window decorations. Size it down and center the window so that it
fits (by either touching the left/right or top/bottom screen borders).
I haven't found any information on what is the maximum allowed size and
position of a window so that it doesn't collide with the task bar, so
assume that we can use the entire screen, minus 1 pixel to avoid
triggering fullscreen semantics (if that is even possible).
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions