Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed creating the window on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 11, 2011
1 parent 3cef5cf commit b7fbc8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -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;
Expand Down

0 comments on commit b7fbc8c

Please sign in to comment.