comparison libvo/w32_common.c @ 33568:276ab400eb1c

Generate VO_EVENT_MOVE also with -wid.
author reimar
date Sun, 19 Jun 2011 12:45:28 +0000
parents 56ab5d4f13e2
children 3f409c370881
comparison
equal deleted inserted replaced
33567:251a48bca536 33568:276ab400eb1c
201 DispatchMessage(&msg); 201 DispatchMessage(&msg);
202 } 202 }
203 if (WinID >= 0) { 203 if (WinID >= 0) {
204 BOOL res; 204 BOOL res;
205 RECT r; 205 RECT r;
206 POINT p;
206 res = GetClientRect(vo_window, &r); 207 res = GetClientRect(vo_window, &r);
207 if (res && (r.right != vo_dwidth || r.bottom != vo_dheight)) { 208 if (res && (r.right != vo_dwidth || r.bottom != vo_dheight)) {
208 vo_dwidth = r.right; vo_dheight = r.bottom; 209 vo_dwidth = r.right; vo_dheight = r.bottom;
209 event_flags |= VO_EVENT_RESIZE; 210 event_flags |= VO_EVENT_RESIZE;
211 }
212 p.x = 0; p.y = 0;
213 ClientToScreen(vo_window, &p);
214 if (p.x != vo_dx || p.y != vo_dy) {
215 vo_dx = p.x; vo_dy = p.y;
216 event_flags |= VO_EVENT_MOVE;
210 } 217 }
211 res = GetClientRect(WinID, &r); 218 res = GetClientRect(WinID, &r);
212 if (res && (r.right != vo_dwidth || r.bottom != vo_dheight)) 219 if (res && (r.right != vo_dwidth || r.bottom != vo_dheight))
213 MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE); 220 MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE);
214 if (!IsWindow(WinID)) 221 if (!IsWindow(WinID))