Engine:
authorsmxx
Mon, 15 Feb 2010 23:32:34 +0000
changeset 2817 4494dab9ef6a
parent 2816 30fc14a79aa0
child 2818 df7ec369992b
Engine: * Fix engine window's icon loading * Note: Thou shall not embed preprocessor code into strings!
hedgewars/CCHandlers.inc
--- a/hedgewars/CCHandlers.inc	Mon Feb 15 23:22:26 2010 +0000
+++ b/hedgewars/CCHandlers.inc	Mon Feb 15 23:32:34 2010 +0000
@@ -639,7 +639,11 @@
 	end;
 
 	// load window icon
-	ico:= LoadImage(Pathz[ptGraphics] + '/hwengine{$IFDEF DARWIN}_mac{$ENDIF}', ifIgnoreCaps);
+	{$IFNDEF DARWIN}
+	ico:= LoadImage(Pathz[ptGraphics] + '/hwengine', ifIgnoreCaps);
+	{$ELSE}
+	ico:= LoadImage(Pathz[ptGraphics] + '/hwengine_mac', ifIgnoreCaps);
+	{$ENDIF}
 	if ico <> nil then
 		begin
 		SDL_WM_SetIcon(ico, 0);