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 5357 ea8fec220775
parent 5356 dc48dd5129a5
child 5358 5b330ef7b8dd
Reset the viewport since we're stretching to the entire window.
test/testoverlay2.c
--- a/test/testoverlay2.c	Sat Feb 19 23:39:04 2011 -0800
+++ b/test/testoverlay2.c	Sun Feb 20 09:24:02 2011 -0800
@@ -537,6 +537,7 @@
             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;
                 }