Engine:
* Fix engine window's icon loading
* Note: Thou shall not embed preprocessor code into strings!
--- 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);