comparison libvo/w32_common.c @ 17126:e5f2f50744cd

WM_PAINT is the "expose" event, not WM_ACTIVATE
author reimar
date Wed, 07 Dec 2005 15:53:02 +0000
parents dbe315450a32
children f57317460375
comparison
equal deleted inserted replaced
17125:5a7b066f3366 17126:e5f2f50744cd
23 static int cursor = 1; 23 static int cursor = 1;
24 static int event_flags; 24 static int event_flags;
25 25
26 static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { 26 static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
27 switch (message) { 27 switch (message) {
28 case WM_ACTIVATE: 28 case WM_PAINT:
29 event_flags |= VO_EVENT_EXPOSE; 29 event_flags |= VO_EVENT_EXPOSE;
30 break; 30 break;
31 case WM_SIZE: 31 case WM_SIZE:
32 event_flags |= VO_EVENT_RESIZE; 32 event_flags |= VO_EVENT_RESIZE;
33 vo_dwidth = lParam & 0xffff; 33 vo_dwidth = lParam & 0xffff;