From c3e48e71b46bd5724d11307e4b87ef7a18f33527 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Tue, 12 Apr 2016 10:45:56 -0400 Subject: [PATCH] Force WM_PAINT events on window resize --- src/video/windows/SDL_windowsevents.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index ecd361974..049fe31a5 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -799,6 +799,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) h = rect.bottom - rect.top; SDL_SendWindowEvent(data->window, SDL_WINDOWEVENT_RESIZED, w, h); + + /* Forces a WM_PAINT event */ + InvalidateRect(hwnd, NULL, FALSE); } break;