comparison libvo/w32_common.c @ 28040:9081df26c512

More robust w32 -wid size handling
author reimar
date Wed, 03 Dec 2008 10:54:01 +0000
parents a95ac8f0336e
children 28bf0d126da2
comparison
equal deleted inserted replaced
28039:a95ac8f0336e 28040:9081df26c512
173 TranslateMessage(&msg); 173 TranslateMessage(&msg);
174 DispatchMessage(&msg); 174 DispatchMessage(&msg);
175 } 175 }
176 if (WinID >= 0) { 176 if (WinID >= 0) {
177 RECT r; 177 RECT r;
178 GetClientRect(vo_window, &r);
179 if (r.right != vo_dwidth || r.bottom != vo_dheight) {
180 vo_dwidth = r.right; vo_dheight = r.bottom;
181 event_flags |= VO_EVENT_RESIZE;
182 }
178 GetClientRect(WinID, &r); 183 GetClientRect(WinID, &r);
179 if (r.right != vo_dwidth || r.bottom != vo_dheight) 184 if (r.right != vo_dwidth || r.bottom != vo_dheight)
180 MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE); 185 MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE);
181 } 186 }
182 187