Fixed creating the window on Mac OS X.
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Feb 2011 12:17:40 -0800
changeset 52539e70b360f423
parent 5252 ec30f9d4c2a8
child 5254 f650566b2f51
Fixed creating the window on Mac OS X.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Fri Feb 11 11:43:58 2011 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Feb 11 12:17:40 2011 -0800
     1.3 @@ -450,10 +450,10 @@
     1.4          [contentView release];
     1.5  
     1.6          ConvertNSRect(&rect);
     1.7 -        window->x = (int)rect.origin.x;
     1.8 -        window->y = (int)rect.origin.y;
     1.9 -        window->w = (int)rect.size.width;
    1.10 -        window->h = (int)rect.size.height;
    1.11 +        window->fullscreen.x = window->windowed.x = window->x = (int)rect.origin.x;
    1.12 +        window->fullscreen.y = window->windowed.y = window->y = (int)rect.origin.y;
    1.13 +        window->fullscreen.w = window->windowed.w = window->w = (int)rect.size.width;
    1.14 +        window->fullscreen.h = window->windowed.h = window->h = (int)rect.size.height;
    1.15      }
    1.16      if ([nswindow isVisible]) {
    1.17          window->flags |= SDL_WINDOW_SHOWN;