X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmain.cpp;h=08d3d86feab69adcd95695af19337e4c4cbf1673;hb=975056dd17a65a96ff87085d915001f3ea485357;hp=2b1c025c7b036229381378c3590c1561c2a1b5ec;hpb=8c08ecd9201829a438705d3d721e2a1701653aa4;p=supertux.git diff --git a/src/main.cpp b/src/main.cpp index 2b1c025c7..08d3d86fe 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 + const char* icon_fname = "images/engine/icons/supertux-256x256.png"; + #else + const 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