src/video/cocoa/SDL_cocoawindow.m
changeset 5375 16877f74123c
parent 5374 dacb4f5e0dd3
child 5376 183ec2d4485c
equal deleted inserted replaced
5374:dacb4f5e0dd3 5375:16877f74123c
   635 
   635 
   636     [pool release];
   636     [pool release];
   637 }
   637 }
   638 
   638 
   639 void
   639 void
       
   640 Cocoa_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
       
   641 {
       
   642     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
       
   643     NSImage *nsimage = Cocoa_CreateImage(icon);
       
   644 
       
   645     if (nsimage) {
       
   646         [NSApp setApplicationIconImage:nsimage];
       
   647     }
       
   648 
       
   649     [pool release];
       
   650 }
       
   651 
       
   652 void
   640 Cocoa_SetWindowPosition(_THIS, SDL_Window * window)
   653 Cocoa_SetWindowPosition(_THIS, SDL_Window * window)
   641 {
   654 {
   642     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
   655     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
   643     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
   656     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
   644     SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
   657     SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);