src/events/SDL_windowevents.c
changeset 2875 91a7e08cd238
parent 2859 99210400e8b9
child 3502 98a819296cdc
     1.1 --- a/src/events/SDL_windowevents.c	Tue Dec 16 17:44:10 2008 +0000
     1.2 +++ b/src/events/SDL_windowevents.c	Wed Dec 17 07:17:54 2008 +0000
     1.3 @@ -58,6 +58,12 @@
     1.4          if (window->flags & SDL_WINDOW_FULLSCREEN) {
     1.5              return 0;
     1.6          }
     1.7 +        if (data1 == SDL_WINDOWPOS_UNDEFINED) {
     1.8 +            data1 = window->x;
     1.9 +        }
    1.10 +        if (data2 == SDL_WINDOWPOS_UNDEFINED) {
    1.11 +            data2 = window->y;
    1.12 +        }
    1.13          if (data1 == window->x && data2 == window->y) {
    1.14              return 0;
    1.15          }