[MPlayer-cvslog] r22433 - trunk/libvo/w32_common.c
reimar
subversion at mplayerhq.hu
Sun Mar 4 11:30:56 CET 2007
Author: reimar
Date: Sun Mar 4 11:30:55 2007
New Revision: 22433
Modified:
trunk/libvo/w32_common.c
Log:
Generate resize events when size of -wid window changes.
Modified: trunk/libvo/w32_common.c
==============================================================================
--- trunk/libvo/w32_common.c (original)
+++ trunk/libvo/w32_common.c Sun Mar 4 11:30:55 2007
@@ -132,6 +132,14 @@ int vo_w32_check_events(void) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
+ if (WinID >= 0) {
+ RECT r;
+ GetClientRect(vo_window, &r);
+ if (r.right != vo_dwidth || r.bottom != vo_dheight)
+ event_flags |= VO_EVENT_RESIZE;
+ vo_dwidth = r.right;
+ vo_dheight = r.bottom;
+ }
return event_flags;
}
More information about the MPlayer-cvslog
mailing list