src/video/cocoa/SDL_cocoawindow.m
changeset 11447 f76299105635
parent 11436 37b2fcd8fc8c
child 11482 05aa6d232dca
equal deleted inserted replaced
11446:d1c34d85b47c 11447:f76299105635
   793             s_moveHack = 0;
   793             s_moveHack = 0;
   794             [nswindow setContentSize:rect.size];
   794             [nswindow setContentSize:rect.size];
   795             [nswindow setFrameOrigin:rect.origin];
   795             [nswindow setFrameOrigin:rect.origin];
   796             s_moveHack = SDL_GetTicks();
   796             s_moveHack = SDL_GetTicks();
   797         }
   797         }
       
   798 
       
   799         /* Force the size change event in case it was delivered earlier
       
   800            while the window was still animating into place.
       
   801          */
       
   802         window->w = 0;
       
   803         window->h = 0;
       
   804         [self windowDidResize:aNotification];
   798 
   805 
   799         /* FIXME: Why does the window get hidden? */
   806         /* FIXME: Why does the window get hidden? */
   800         if (window->flags & SDL_WINDOW_SHOWN) {
   807         if (window->flags & SDL_WINDOW_SHOWN) {
   801             Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
   808             Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
   802         }
   809         }