Mercurial > sdl-ios-xcode
changeset 5258:9e70b360f423
Fixed creating the window on Mac OS X.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Feb 2011 12:17:40 -0800 |
parents | ec30f9d4c2a8 |
children | f650566b2f51 |
files | src/video/cocoa/SDL_cocoawindow.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;