Mercurial > mplayer.hg
changeset 28040:9081df26c512
More robust w32 -wid size handling
author | reimar |
---|---|
date | Wed, 03 Dec 2008 10:54:01 +0000 |
parents | a95ac8f0336e |
children | 211c23dac000 |
files | libvo/w32_common.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/w32_common.c Wed Dec 03 10:42:53 2008 +0000 +++ b/libvo/w32_common.c Wed Dec 03 10:54:01 2008 +0000 @@ -175,6 +175,11 @@ } 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);