Fixed creating the window on Mac OS X.
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Feb 2011 12:17:40 -0800
changeset 5253 9e70b360f423
parent 5252 ec30f9d4c2a8
child 5254 f650566b2f51
Fixed creating the window on Mac OS X.
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;