The window is now refreshed even when resized or moved.

This commit is contained in:
luigi__ 2009-02-09 22:21:14 +00:00
parent 7dedcf1ab5
commit b24f4fe17e
1 changed files with 7 additions and 3 deletions

View File

@ -1734,11 +1734,15 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
ExitRunLoop(); ExitRunLoop();
return 0; return 0;
} }
case WM_MOVING:
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
return 0;
case WM_MOVE: case WM_MOVE:
GetWndRect(hwnd); GetWndRect(hwnd);
return 0; return 0;
case WM_SIZING: case WM_SIZING:
{ {
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
if(windowSize) if(windowSize)
{ {
windowSize = 0; windowSize = 0;
@ -1769,7 +1773,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
} }
return 0; return 0;
case WM_PAINT: case WM_PAINT:
if(paused) if(paused || (lParam == 0x12345678))
{ {
osd->update(); osd->update();
Display(); Display();