src/events/SDL_windowevents.c
changeset 5261 595814f561f7
parent 5249 7a963be087ef
child 5262 b530ef003506
     1.1 --- a/src/events/SDL_windowevents.c	Fri Feb 11 19:11:27 2011 -0800
     1.2 +++ b/src/events/SDL_windowevents.c	Fri Feb 11 20:49:13 2011 -0800
     1.3 @@ -86,43 +86,19 @@
     1.4              SDL_WINDOWPOS_ISUNDEFINED(data2)) {
     1.5              return 0;
     1.6          }
     1.7 -        if (window->flags & SDL_WINDOW_FULLSCREEN) {
     1.8 -            window->fullscreen.x = data1;
     1.9 -            window->fullscreen.y = data1;
    1.10 -        } else {
    1.11 -            window->windowed.x = data1;
    1.12 -            window->windowed.y = data1;
    1.13 -        }
    1.14          if (data1 == window->x && data2 == window->y) {
    1.15              return 0;
    1.16          }
    1.17          window->x = data1;
    1.18          window->y = data2;
    1.19 -
    1.20 -        if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.21 -            /* Do we really want to do this? */
    1.22 -            return 0;
    1.23 -        }
    1.24          break;
    1.25      case SDL_WINDOWEVENT_RESIZED:
    1.26 -        if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.27 -            window->fullscreen.w = data1;
    1.28 -            window->fullscreen.h = data1;
    1.29 -        } else {
    1.30 -            window->windowed.w = data1;
    1.31 -            window->windowed.h = data1;
    1.32 -        }
    1.33          if (data1 == window->w && data2 == window->h) {
    1.34              return 0;
    1.35          }
    1.36          window->w = data1;
    1.37          window->h = data2;
    1.38          SDL_OnWindowResized(window);
    1.39 -
    1.40 -        if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.41 -            /* Do we really want to do this? */
    1.42 -            return 0;
    1.43 -        }
    1.44          break;
    1.45      case SDL_WINDOWEVENT_MINIMIZED:
    1.46          if (window->flags & SDL_WINDOW_MINIMIZED) {