changeset: 5278:b4b71ec2af73
authorSam Lantinga <slouken@libsdl.org>
Sat, 12 Feb 2011 17:36:09 -0800
changeset 5274 07559b6cb64f
parent 5273 151f40ed9e55
child 5275 bad04e4710f6
changeset: 5278:b4b71ec2af73 tag: tip user: Martin Decky <martin@decky.cz> date: Sat Feb 12 22:27:14 2011 +0100 summary: fix typo (assigning height value into displayrect.w instead of displayrect.h)
test/testoverlay2.c
--- a/test/testoverlay2.c	Sat Feb 12 12:04:23 2011 -0800
+++ b/test/testoverlay2.c	Sat Feb 12 17:36:09 2011 -0800
@@ -538,7 +538,7 @@
             case SDL_WINDOWEVENT:
                 if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
                     displayrect.w = window_w = event.window.data1;
-                    displayrect.w = window_h = event.window.data2;
+                    displayrect.h = window_h = event.window.data2;
                 }
                 break;
             case SDL_MOUSEBUTTONDOWN: