# HG changeset patch # User reimar # Date 1173004255 0 # Node ID c36b8d705d08b81a96c4abfdf630d942138d506e # Parent 01f781618827a734527e0ce1671aa4d744447a09 Generate resize events when size of -wid window changes. diff -r 01f781618827 -r c36b8d705d08 libvo/w32_common.c --- a/libvo/w32_common.c Sun Mar 04 09:45:32 2007 +0000 +++ b/libvo/w32_common.c Sun Mar 04 10:30:55 2007 +0000 @@ -132,6 +132,14 @@ 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; }