From cedb545e5cd14b8900a28918a04055d145e20d28 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 30 Oct 2014 08:48:36 -0400 Subject: Okay, REALLY fixed the redraw issues now. A few wacky drawing issues remain, but... not THIS. --- window_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window_windows.c') diff --git a/window_windows.c b/window_windows.c index 8f618ab..57dc2a6 100644 --- a/window_windows.c +++ b/window_windows.c @@ -28,7 +28,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA if (FillRect((HDC) wParam, &r, windowBackground) == 0) xpanic("error filling WM_PRINTCLIENT DC with window background color", GetLastError()); return lResult; - case WM_WINDOWPOSCHANGING: + // don't do this on WM_WINDOWPOSCHANGING; weird redraw issues will happen case WM_WINDOWPOSCHANGED: if (GetClientRect(hwnd, &r) == 0) xpanic("error getting client rect for Window in WM_SIZE", GetLastError()); -- cgit v1.2.3