src/events/SDL_windowevents.c
changeset 5398 83816c8a2b58
parent 5383 40c76519000e
child 5524 b7f53a566ef1
     1.1 --- a/src/events/SDL_windowevents.c	Thu Feb 24 23:42:58 2011 -0800
     1.2 +++ b/src/events/SDL_windowevents.c	Sat Feb 26 10:11:09 2011 -0800
     1.3 @@ -89,6 +89,10 @@
     1.4              SDL_WINDOWPOS_ISUNDEFINED(data2)) {
     1.5              return 0;
     1.6          }
     1.7 +        if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
     1.8 +            window->windowed.x = data1;
     1.9 +            window->windowed.y = data2;
    1.10 +        }
    1.11          if (data1 == window->x && data2 == window->y) {
    1.12              return 0;
    1.13          }
    1.14 @@ -96,6 +100,10 @@
    1.15          window->y = data2;
    1.16          break;
    1.17      case SDL_WINDOWEVENT_RESIZED:
    1.18 +        if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
    1.19 +            window->windowed.w = data1;
    1.20 +            window->windowed.h = data2;
    1.21 +        }
    1.22          if (data1 == window->w && data2 == window->h) {
    1.23              return 0;
    1.24          }