src/video/SDL_video.c
changeset 6956 afdc35fa58e9
parent 6936 76d9c31e823d
child 6984 ae9c4b12f3e2
     1.1 --- a/src/video/SDL_video.c	Sun Mar 03 11:25:43 2013 -0800
     1.2 +++ b/src/video/SDL_video.c	Sun Mar 03 17:22:51 2013 -0800
     1.3 @@ -1524,18 +1524,16 @@
     1.4  void
     1.5  SDL_GetWindowPosition(SDL_Window * window, int *x, int *y)
     1.6  {
     1.7 -    /* Clear the values */
     1.8 -    if (x) {
     1.9 -        *x = 0;
    1.10 -    }
    1.11 -    if (y) {
    1.12 -        *y = 0;
    1.13 -    }
    1.14 -
    1.15      CHECK_WINDOW_MAGIC(window, );
    1.16  
    1.17      /* Fullscreen windows are always at their display's origin */
    1.18      if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.19 +        if (x) {
    1.20 +            *x = 0;
    1.21 +        }
    1.22 +        if (y) {
    1.23 +            *y = 0;
    1.24 +        }
    1.25      } else {
    1.26          if (x) {
    1.27              *x = window->x;