Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed creating the window on Mac OS X.

  • Loading branch information
slouken committed Feb 11, 2011
1 parent 3cef5cf commit b7fbc8c4ee5b6fb24f5283cb237e71437b065f12
Showing with 4 additions and 4 deletions.
  1. +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;

0 comments on commit b7fbc8c

Please sign in to comment.