Bind WM-Icon to application

This commit is contained in:
zicodxx 2010-08-21 06:51:13 +00:00
parent cafb861bc5
commit 8e708af3cb
4 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20100821
--------
d1x-rebirth.ico, d1x-rebirth.xpm, arch/sdl/gr.c, arch/ogl/gr.c: Bind WM-Icon to application
20100819
--------
d1x-rebirth/main/bmread.c, d1x-rebirth/main/paging.c, d1x-rebirth/main/aipath.c, d1x-rebirth/main/piggy.c, d1x-rebirth/main/gamesave.c, d1x-rebirth/main/dumpmine.c, d1x-rebirth/main/kconfig.c, d1x-rebirth/main/gamecntl.c, d1x-rebirth/editor/segment.c, d1x-rebirth/editor/kmine.c, d1x-rebirth/editor/mine.c, d1x-rebirth/editor/group.c, d1x-rebirth/editor/med.c, d1x-rebirth/editor/eswitch.c, d1x-rebirth/editor/medwall.c, d1x-rebirth/iff/iff.c, d1x-rebirth/ui/radio.c, d1x-rebirth/ui/scroll.c, d1x-rebirth/ui/window.c, d1x-rebirth/ui/keypad.c, d1x-rebirth/ui/file.c, d1x-rebirth/ui/listbox.c, d1x-rebirth/ui/mouse.c, d1x-rebirth/ui/menubar.c, d1x-rebirth/ui/lfile.c, d1x-rebirth/mem/mem.c: Patching together editor so it compiles again (while still not running); Implemented PhysFS for file accessing for editor- and debugging-related code

View file

@ -73,6 +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 );
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());

View file

@ -99,6 +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 );
if(SDL_VideoModeOK(w,h,GameArg.DbgBpp,sdl_video_flags))
{

BIN
d1x-rebirth.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB