src/video/cocoa/SDL_cocoawindow.m
changeset 7948 64e133a8b15e
parent 7946 57c34a54b7c2
child 7952 5ac1a895b313
equal deleted inserted replaced
7947:f5f51b3c4dd2 7948:64e133a8b15e
   752     @try {
   752     @try {
   753         nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:NO screen:screen];
   753         nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:NO screen:screen];
   754     }
   754     }
   755     @catch (NSException *e) {
   755     @catch (NSException *e) {
   756         SDL_SetError("%s", [[e reason] UTF8String]);
   756         SDL_SetError("%s", [[e reason] UTF8String]);
       
   757         [pool release];
   757         return -1;
   758         return -1;
   758     }
   759     }
   759     [nswindow setBackgroundColor:[NSColor blackColor]];
   760     [nswindow setBackgroundColor:[NSColor blackColor]];
   760 
   761 
   761     /* Create a default view for this window */
   762     /* Create a default view for this window */