src/video/SDL_video.c
changeset 2849 523b10db69f8
parent 2814 e841aa93e6be
child 2859 99210400e8b9
     1.1 --- a/src/video/SDL_video.c	Sun Dec 07 07:16:40 2008 +0000
     1.2 +++ b/src/video/SDL_video.c	Sun Dec 07 21:53:28 2008 +0000
     1.3 @@ -1046,6 +1046,7 @@
     1.4      if (_this->SetWindowSize) {
     1.5          _this->SetWindowSize(_this, window);
     1.6      }
     1.7 +    SDL_OnWindowResized(window);
     1.8  }
     1.9  
    1.10  void
    1.11 @@ -1054,13 +1055,19 @@
    1.12      SDL_Window *window = SDL_GetWindowFromID(windowID);
    1.13  
    1.14      if (!window) {
    1.15 -        return;
    1.16 -    }
    1.17 -    if (w) {
    1.18 -        *w = window->w;
    1.19 -    }
    1.20 -    if (h) {
    1.21 -        *h = window->h;
    1.22 +        if (w) {
    1.23 +            *w = window->w;
    1.24 +        }
    1.25 +        if (h) {
    1.26 +            *h = window->h;
    1.27 +        }
    1.28 +    } else {
    1.29 +        if (w) {
    1.30 +            *w = 0;
    1.31 +        }
    1.32 +        if (h) {
    1.33 +            *h = 0;
    1.34 +        }
    1.35      }
    1.36  }
    1.37