From 5c9a311f7b62da30b4ceebc4f998680a701091ab Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 26 Aug 2007 18:03:25 +0000 Subject: [PATCH] Disable buildin icon loading on os x Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2990 --- src/gui/sdlmain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 4a565615..abf6d134 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: sdlmain.cpp,v 1.133 2007-08-18 16:32:04 qbix79 Exp $ */ +/* $Id: sdlmain.cpp,v 1.134 2007-08-26 18:03:25 qbix79 Exp $ */ #ifndef _GNU_SOURCE #define _GNU_SOURCE @@ -948,13 +948,16 @@ static void GUI_StartUp(Section * sec) { sdl.active=false; sdl.updating=false; +#if !defined(MACOSX) /* Set Icon (must be done before any sdl_setvideomode call) */ + /* But don't set it on OS X, as we use a nicer external icon there. */ #if WORDS_BIGENDIAN SDL_Surface* logos= SDL_CreateRGBSurfaceFrom((void*)logo,32,32,32,128,0xff000000,0x00ff0000,0x0000ff00,0); #else SDL_Surface* logos= SDL_CreateRGBSurfaceFrom((void*)logo,32,32,32,128,0x000000ff,0x0000ff00,0x00ff0000,0); #endif SDL_WM_SetIcon(logos,NULL); +#endif sdl.desktop.fullscreen=section->Get_bool("fullscreen"); sdl.wait_on_error=section->Get_bool("waitonerror");