diff src/events/SDL_windowevents.c @ 1915:a228436a2404

Implemented multi-window OpenGL program with test framework.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 19 Jul 2006 04:24:41 +0000
parents c121d94672cb
children db3ba6c0d0df
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c	Tue Jul 18 07:49:51 2006 +0000
+++ b/src/events/SDL_windowevents.c	Wed Jul 19 04:24:41 2006 +0000
@@ -60,6 +60,8 @@
         if (data1 == window->x && data2 == window->y) {
             return 0;
         }
+        window->x = data1;
+        window->y = data2;
         break;
     case SDL_WINDOWEVENT_RESIZED:
         if (window->flags & SDL_WINDOW_FULLSCREEN) {
@@ -68,6 +70,8 @@
         if (data1 == window->w && data2 == window->h) {
             return 0;
         }
+        window->w = data1;
+        window->h = data2;
         break;
     case SDL_WINDOWEVENT_MINIMIZED:
         if (window->flags & SDL_WINDOW_MINIMIZED) {