# HG changeset patch # User Sam Lantinga # Date 1297455460 28800 # Node ID 9e70b360f423b8b96449e85dcad0b2bd41597616 # Parent ec30f9d4c2a83ef93d973aa8a846f5c7ad874a16 Fixed creating the window on Mac OS X. diff -r ec30f9d4c2a8 -r 9e70b360f423 src/video/cocoa/SDL_cocoawindow.m --- a/src/video/cocoa/SDL_cocoawindow.m Fri Feb 11 11:43:58 2011 -0800 +++ b/src/video/cocoa/SDL_cocoawindow.m Fri Feb 11 12:17:40 2011 -0800 @@ -450,10 +450,10 @@ [contentView release]; ConvertNSRect(&rect); - window->x = (int)rect.origin.x; - window->y = (int)rect.origin.y; - window->w = (int)rect.size.width; - window->h = (int)rect.size.height; + window->fullscreen.x = window->windowed.x = window->x = (int)rect.origin.x; + window->fullscreen.y = window->windowed.y = window->y = (int)rect.origin.y; + window->fullscreen.w = window->windowed.w = window->w = (int)rect.size.width; + window->fullscreen.h = window->windowed.h = window->h = (int)rect.size.height; } if ([nswindow isVisible]) { window->flags |= SDL_WINDOW_SHOWN;