test/testoverlay2.c
changeset 5357 ea8fec220775
parent 5274 07559b6cb64f
child 5535 96594ac5fd1a
--- 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;
                 }