# HG changeset patch # User reimar # Date 1228301641 0 # Node ID 9081df26c512e03fac61b61586542675c6199095 # Parent a95ac8f0336eb64e6b13195c929a25a887e601c7 More robust w32 -wid size handling diff -r a95ac8f0336e -r 9081df26c512 libvo/w32_common.c --- 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);