From ad90e64ad9e4ac8500be10c169051ce029401ed7 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 4 Mar 2007 10:30:55 +0000 Subject: Generate resize events when size of -wid window changes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22433 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libvo') diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 1e2397d406..141576dfd3 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -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; } -- cgit v1.2.3