diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7242b36d7..3ae42bc22 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D1X-Rebirth Changelog 20100821 -------- d1x-rebirth.ico, d1x-rebirth.xpm, arch/sdl/gr.c, arch/ogl/gr.c: Bind WM-Icon to application +SConstruct, d1x-rebirth.bmp, d1x-rebirth.xpm, arch/sdl/gr.c, arch/ogl/gr.c, arch/win32/d1xr.res: Added res-file to be linked in Windows build to show icon in Filemanager; converted icon file to be smaller 20100819 -------- diff --git a/SConstruct b/SConstruct index 86d8bb02f..3373b2c74 100644 --- a/SConstruct +++ b/SConstruct @@ -308,7 +308,7 @@ if sys.platform == 'win32': common_sources += ['arch/win32/ipx.c'] ogllibs = '' libs += ['glu32', 'wsock32', 'winmm', 'mingw32', 'SDLmain', 'SDL'] - lflags = '-mwindows' + lflags = '-mwindows arch/win32/d1xr.res' elif sys.platform == 'darwin': print "compiling on Mac OS X" osdef = '__APPLE__' diff --git a/arch/ogl/gr.c b/arch/ogl/gr.c index c73d7ee02..97a4465a2 100644 --- a/arch/ogl/gr.c +++ b/arch/ogl/gr.c @@ -73,7 +73,7 @@ int ogl_init_window(int x, int y) } SDL_WM_SetCaption(DESCENT_VERSION, "Descent"); - SDL_WM_SetIcon( SDL_LoadBMP( "d1x-rebirth.ico" ), NULL ); + SDL_WM_SetIcon( SDL_LoadBMP( "d1x-rebirth.bmp" ), NULL ); if (!SDL_SetVideoMode(x, y, GameArg.DbgBpp, SDL_OPENGL | (ogl_fullscreen ? SDL_FULLSCREEN : 0))) { Error("Could not set %dx%dx%d opengl video mode: %s\n", x, y, GameArg.DbgBpp, SDL_GetError()); diff --git a/arch/sdl/gr.c b/arch/sdl/gr.c index 59839f099..82e716e13 100644 --- a/arch/sdl/gr.c +++ b/arch/sdl/gr.c @@ -99,7 +99,7 @@ int gr_set_mode(u_int32_t mode) screen=NULL; SDL_WM_SetCaption(DESCENT_VERSION, "Descent"); - SDL_WM_SetIcon( SDL_LoadBMP( "d1x-rebirth.ico" ), NULL ); + SDL_WM_SetIcon( SDL_LoadBMP( "d1x-rebirth.bmp" ), NULL ); if(SDL_VideoModeOK(w,h,GameArg.DbgBpp,sdl_video_flags)) { diff --git a/arch/win32/d1xr.res b/arch/win32/d1xr.res new file mode 100755 index 000000000..f8ebc2f98 Binary files /dev/null and b/arch/win32/d1xr.res differ diff --git a/d1x-rebirth.bmp b/d1x-rebirth.bmp new file mode 100644 index 000000000..0234b3a5a Binary files /dev/null and b/d1x-rebirth.bmp differ diff --git a/d1x-rebirth.ico b/d1x-rebirth.ico deleted file mode 100644 index 2376334e2..000000000 Binary files a/d1x-rebirth.ico and /dev/null differ