From c2400c9068e053375bd496ab8f2092a4840bc3ca Mon Sep 17 00:00:00 2001 From: mogguh Date: Fri, 21 Sep 2007 15:13:54 +0000 Subject: Feature: window title bar icon / taskman icon pre-work, needs fixing after we can read from res w/ sdl_img git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@427 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UGraphic.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Game/Code/Classes/UGraphic.pas b/Game/Code/Classes/UGraphic.pas index 3fbef8b1..3f251be2 100644 --- a/Game/Code/Classes/UGraphic.pas +++ b/Game/Code/Classes/UGraphic.pas @@ -506,6 +506,11 @@ begin Log.LogStatus('SDL_SetVideoMode', 'Initialize3D'); + +// Okay it's possible to set the title bar / taskbar icon here +// it's working this way, but just if the bmp is in your exe folder + SDL_WM_SetIcon(SDL_LoadBMP('ustar-icon.bmp'), 0); + // SDL_SetRefreshrate(85); // SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); if (Ini.FullScreen = 0) and (Not Params.FullScreen) then -- cgit v1.2.3