[MPlayer-cvslog] CVS: main/libvo w32_common.c,1.17,1.18
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Tue Dec 6 23:15:05 CET 2005
- Previous message: [MPlayer-cvslog] CVS: main codec-cfg.c,1.121,1.122
- Next message: [MPlayer-cvslog] CVS: main/libvo gl_common.c, 1.35, 1.36 gl_common.h, 1.22, 1.23 vo_gl.c, 1.109, 1.110 vo_gl2.c, 1.83, 1.84
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv23971
Modified Files:
w32_common.c
Log Message:
Fix message handling, process resize events
Index: w32_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/w32_common.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- w32_common.c 17 Nov 2005 20:49:46 -0000 1.17
+++ w32_common.c 6 Dec 2005 22:15:03 -0000 1.18
@@ -21,9 +21,18 @@
static HINSTANCE hInstance;
HWND vo_window = 0;
static int cursor = 1;
+static int event_flags;
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
switch (message) {
+ case WM_ACTIVATE:
+ event_flags |= VO_EVENT_EXPOSE;
+ break;
+ case WM_SIZE:
+ event_flags |= VO_EVENT_RESIZE;
+ vo_dwidth = lParam & 0xffff;
+ vo_dheight = lParam >> 16;
+ break;
case WM_CLOSE:
mplayer_put_key(KEY_CLOSE_WIN);
break;
@@ -90,18 +99,13 @@
int vo_w32_check_events(void) {
MSG msg;
- int r = 0;
+ event_flags = 0;
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
- switch (msg.message) {
- case WM_ACTIVATE:
- r |= VO_EVENT_EXPOSE;
- break;
- }
}
- return r;
+ return event_flags;
}
static void updateScreenProperties() {
- Previous message: [MPlayer-cvslog] CVS: main codec-cfg.c,1.121,1.122
- Next message: [MPlayer-cvslog] CVS: main/libvo gl_common.c, 1.35, 1.36 gl_common.h, 1.22, 1.23 vo_gl.c, 1.109, 1.110 vo_gl2.c, 1.83, 1.84
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list