commit | 87670dc57bf602e103b80b358ea12bca4ef93ffe | [log] [tgz] |
---|---|---|
author | Ethan Lee <flibitijibibo@flibitijibibo.com> | Tue Apr 12 10:45:56 2016 -0400 |
committer | Ethan Lee <flibitijibibo@flibitijibibo.com> | Tue Apr 12 10:45:56 2016 -0400 |
tree | 450b02f7edb9d4b73590337902d481a374ab500d | |
parent | 33543d7e47616e221a2aed3affc569bbad051d5e [diff] |
Force WM_PAINT events on window resize
diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index ecd3619..049fe31 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c
@@ -799,6 +799,9 @@ h = rect.bottom - rect.top; SDL_SendWindowEvent(data->window, SDL_WINDOWEVENT_RESIZED, w, h); + + /* Forces a WM_PAINT event */ + InvalidateRect(hwnd, NULL, FALSE); } break;