Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Reset the viewport since we're stretching to the entire window.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 20, 2011
1 parent 1cb63d5 commit 3f761fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/testoverlay2.c
Expand Up @@ -537,6 +537,7 @@ main(int argc, char **argv)
switch (event.type) {
case SDL_WINDOWEVENT:
if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
SDL_RenderSetViewport(renderer, NULL);
displayrect.w = window_w = event.window.data1;
displayrect.h = window_h = event.window.data2;
}
Expand Down

0 comments on commit 3f761fc

Please sign in to comment.