Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed creating the window on Mac OS X.
- Loading branch information
Showing
with
4 additions
and
4 deletions.
-
+4
−4
src/video/cocoa/SDL_cocoawindow.m
|
@@ -450,10 +450,10 @@ - (void)rightMouseDown:(NSEvent *)theEvent |
|
|
[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; |
|
|