Bigger icon for Mac OS X
authorChristoph Sommer <mail@christoph-sommer.de>
Thu, 3 Jan 2008 14:34:31 +0000 (14:34 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Thu, 3 Jan 2008 14:34:31 +0000 (14:34 +0000)
SVN-Revision: 5242

data/images/engine/icons/supertux-256x256.png [new file with mode: 0644]
data/images/engine/icons/supertux.icns
src/main.cpp

diff --git a/data/images/engine/icons/supertux-256x256.png b/data/images/engine/icons/supertux-256x256.png
new file mode 100644 (file)
index 0000000..a51602d
Binary files /dev/null and b/data/images/engine/icons/supertux-256x256.png differ
index 81a50c3..735b88a 100644 (file)
Binary files a/data/images/engine/icons/supertux.icns and b/data/images/engine/icons/supertux.icns differ
index 2b1c025..d97dcd5 100644 (file)
@@ -428,15 +428,19 @@ void init_video()
   SDL_WM_SetCaption(PACKAGE_NAME " " PACKAGE_VERSION, 0);
 
   // set icon
-  SDL_Surface* icon = IMG_Load_RW(
-      get_physfs_SDLRWops("images/engine/icons/supertux.xpm"), true);
+  #ifdef MACOSX
+  char* icon_fname = "images/engine/icons/supertux-256x256.png";
+  #else
+  char* icon_fname = "images/engine/icons/supertux.xpm";
+  #endif
+  SDL_Surface* icon = IMG_Load_RW(get_physfs_SDLRWops(icon_fname), true);
   if(icon != 0) {
     SDL_WM_SetIcon(icon, 0);
     SDL_FreeSurface(icon);
   }
 #ifdef DEBUG
   else {
-    log_warning << "Couldn't find icon 'images/engine/icons/supertux.xpm'" << std::endl;
+    log_warning << "Couldn't find icon '" << icon_fname << "'" << std::endl;
   }
 #endif