diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-12-03 10:54:01 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-12-03 10:54:01 +0000 |
commit | 70dbf549e601b922465eb513fead796403a351b0 (patch) | |
tree | 6a3c18bb5b035f9b42f113294a9ef52c56aeee36 /libvo | |
parent | 23a8967a4c43fbfc4ab7e20492b914857b1c600b (diff) | |
download | mpv-70dbf549e601b922465eb513fead796403a351b0.tar.bz2 mpv-70dbf549e601b922465eb513fead796403a351b0.tar.xz |
More robust w32 -wid size handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28074 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/w32_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 29a756163f..3be776f5d9 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -175,6 +175,11 @@ int vo_w32_check_events(void) { } if (WinID >= 0) { RECT r; + GetClientRect(vo_window, &r); + if (r.right != vo_dwidth || r.bottom != vo_dheight) { + vo_dwidth = r.right; vo_dheight = r.bottom; + event_flags |= VO_EVENT_RESIZE; + } GetClientRect(WinID, &r); if (r.right != vo_dwidth || r.bottom != vo_dheight) MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE); |