From: Christoph Sommer Date: Thu, 3 Jan 2008 14:34:31 +0000 (+0000) Subject: Bigger icon for Mac OS X X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=86ad4aefa6a04c35eb0e9379ba1ed35bf09a0ea7;p=supertux.git Bigger icon for Mac OS X SVN-Revision: 5242 --- diff --git a/data/images/engine/icons/supertux-256x256.png b/data/images/engine/icons/supertux-256x256.png new file mode 100644 index 000000000..a51602d10 Binary files /dev/null and b/data/images/engine/icons/supertux-256x256.png differ diff --git a/data/images/engine/icons/supertux.icns b/data/images/engine/icons/supertux.icns index 81a50c3ee..735b88afa 100644 Binary files a/data/images/engine/icons/supertux.icns and b/data/images/engine/icons/supertux.icns differ diff --git a/src/main.cpp b/src/main.cpp index 2b1c025c7..d97dcd519 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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