src/video/SDL_video.c
changeset 5398 83816c8a2b58
parent 5385 5f9c2515fc08
child 5403 424f036f7c68
     1.1 --- a/src/video/SDL_video.c	Thu Feb 24 23:42:58 2011 -0800
     1.2 +++ b/src/video/SDL_video.c	Sat Feb 26 10:11:09 2011 -0800
     1.3 @@ -1087,6 +1087,11 @@
     1.4  static void
     1.5  SDL_FinishWindowCreation(SDL_Window *window, Uint32 flags)
     1.6  {
     1.7 +    window->windowed.x = window->x;
     1.8 +    window->windowed.y = window->y;
     1.9 +    window->windowed.w = window->w;
    1.10 +    window->windowed.h = window->h;
    1.11 +
    1.12      if (flags & SDL_WINDOW_MAXIMIZED) {
    1.13          SDL_MaximizeWindow(window);
    1.14      }