Force WM_PAINT events on window resize
This commit is contained in:
parent
c897935592
commit
94bfcde5a1
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue