- else {
- log_warning << "Couldn't load icon '" << icon_fname << "'" << std::endl;
- }
- */
-
- // SDL_WM_SetCaption(PACKAGE_NAME " " PACKAGE_VERSION, 0);
-
- // set icon
-#ifdef MACOSX
- const char* icon_fname = "images/engine/icons/supertux-256x256.png";
-#else
- const char* icon_fname = "images/engine/icons/supertux.xpm";
-#endif
- SDL_Window* icon = 0;
- try {
- //icon = IMG_Load_RW(get_physfs_SDLRWops(icon_fname), true);
- } catch (const std::runtime_error& err) {
- log_warning << "Couldn't load icon '" << icon_fname << "': " << err.what() << std::endl;
- }
- if(icon != 0) {
- // SDL_SetWindowIcon(icon, 0); //now SDL_SetWindowIcon(window, surface); if needed
- // SDL_FreeSurface(icon);
- }
- else {
- log_warning << "Couldn't load icon '" << icon_fname << "'" << std::endl;
- }
-
-
- /* // set icon
-#ifdef MACOSX
- const char* icon_fname = "images/engine/icons/supertux-256x256.png";
-#else
- const char* icon_fname = "images/engine/icons/supertux.xpm";
-#endif
-
- SDL_Window icon = SDL_CreateWindow(PACKAGE_NAME " " PACKAGE_VERSION,
- SDL_WINDOWPOS_UNDEFINED,
- SDL_WINDOWPOS_UNDEFINED,
- 640, 480,
- SDL_WINDOW_FULLSCREEN | SDL_WINDOW_OPENGL);
- // not sure of that */
-#endif