aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authormogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-21 15:13:54 +0000
committermogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-21 15:13:54 +0000
commitc2400c9068e053375bd496ab8f2092a4840bc3ca (patch)
tree82140e201056243ac51ac7a8dec4ed91f644912d /Game/Code/Classes
parentf26a2364e41b95665d9e55593eb0c0e8f4cf646b (diff)
downloadusdx-c2400c9068e053375bd496ab8f2092a4840bc3ca.tar.gz
usdx-c2400c9068e053375bd496ab8f2092a4840bc3ca.tar.xz
usdx-c2400c9068e053375bd496ab8f2092a4840bc3ca.zip
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
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UGraphic.pas5
1 files changed, 5 insertions, 0 deletions
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