Skip to content

Commit

Permalink
Force WM_PAINT events on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 12, 2016
1 parent f032f81 commit c3e48e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -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;

Expand Down

0 comments on commit c3e48e7

Please sign in to comment.