Reset the viewport since we're stretching to the entire window.
authorSam Lantinga <slouken@libsdl.org>
Sun, 20 Feb 2011 09:24:02 -0800
changeset 5357ea8fec220775
parent 5356 dc48dd5129a5
child 5358 5b330ef7b8dd
Reset the viewport since we're stretching to the entire window.
test/testoverlay2.c
     1.1 --- a/test/testoverlay2.c	Sat Feb 19 23:39:04 2011 -0800
     1.2 +++ b/test/testoverlay2.c	Sun Feb 20 09:24:02 2011 -0800
     1.3 @@ -537,6 +537,7 @@
     1.4              switch (event.type) {
     1.5              case SDL_WINDOWEVENT:
     1.6                  if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
     1.7 +                    SDL_RenderSetViewport(renderer, NULL);
     1.8                      displayrect.w = window_w = event.window.data1;
     1.9                      displayrect.h = window_h = event.window.data2;
    1.10                  }