summaryrefslogtreecommitdiffstats
path: root/libvo/old_vo_wrapper.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-10-28 15:19:51 +0200
committerwm4 <wm4@mplayer2.org>2012-03-17 20:58:16 +0100
commit67fcdcd8a32ba6b0741c205772beae0fef1cd23e (patch)
tree3febd9533d0b2ecc1db6f5578a390c318a6cb0ae /libvo/old_vo_wrapper.c
parent32de5df90cfa6102dc339410bb85a0784ecec61e (diff)
downloadmpv-67fcdcd8a32ba6b0741c205772beae0fef1cd23e.tar.bz2
mpv-67fcdcd8a32ba6b0741c205772beae0fef1cd23e.tar.xz
win32: different method to force window aspect ratio
The code used WM_WINDOWPOSCHANGING to force an spect ratio. This didn't behave well if the left/top window borders were used for resizing. Resizing with these borders changed the screen position of the right/bottom as well, which is unintuitive and annoying. Use WM_SIZING instead. Unlike WM_WINDOWPOSCHANGING, WM_SIZING knows about which border is being used for resizing and can act accordingly. Note that the calculated window size doesn't necessarily match with the size mplayer calculates, but this problem exists on x11 as well.
Diffstat (limited to 'libvo/old_vo_wrapper.c')
0 files changed, 0 insertions, 0 deletions