Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoawindow.m @ 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 | 7a963be087ef |
children | 595814f561f7 |
comparison
equal
deleted
inserted
replaced
5257:ec30f9d4c2a8 | 5258:9e70b360f423 |
---|---|
448 #endif | 448 #endif |
449 [nswindow setContentView: contentView]; | 449 [nswindow setContentView: contentView]; |
450 [contentView release]; | 450 [contentView release]; |
451 | 451 |
452 ConvertNSRect(&rect); | 452 ConvertNSRect(&rect); |
453 window->x = (int)rect.origin.x; | 453 window->fullscreen.x = window->windowed.x = window->x = (int)rect.origin.x; |
454 window->y = (int)rect.origin.y; | 454 window->fullscreen.y = window->windowed.y = window->y = (int)rect.origin.y; |
455 window->w = (int)rect.size.width; | 455 window->fullscreen.w = window->windowed.w = window->w = (int)rect.size.width; |
456 window->h = (int)rect.size.height; | 456 window->fullscreen.h = window->windowed.h = window->h = (int)rect.size.height; |
457 } | 457 } |
458 if ([nswindow isVisible]) { | 458 if ([nswindow isVisible]) { |
459 window->flags |= SDL_WINDOW_SHOWN; | 459 window->flags |= SDL_WINDOW_SHOWN; |
460 } else { | 460 } else { |
461 window->flags &= ~SDL_WINDOW_SHOWN; | 461 window->flags &= ~SDL_WINDOW_SHOWN; |