--- a/src/video/cocoa/SDL_cocoawindow.m Mon Feb 21 15:25:49 2011 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m Mon Feb 21 16:45:23 2011 -0800
@@ -637,6 +637,19 @@
}
void
+Cocoa_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
+{
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ NSImage *nsimage = Cocoa_CreateImage(icon);
+
+ if (nsimage) {
+ [NSApp setApplicationIconImage:nsimage];
+ }
+
+ [pool release];
+}
+
+void
Cocoa_SetWindowPosition(_THIS, SDL_Window * window)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];