# HG changeset patch
# User unc0rr
# Date 1201342903 0
# Node ID bebfae2063b3167af7e3cb32378c0f2f42e5a528
# Parent  ddbff94153e88ad037b7dcff6c5dd22d2384a3ac
 - Start conveting pngs to have alpha-channel

diff -r ddbff94153e8 -r bebfae2063b3 hedgewars/uConsts.pas
--- a/hedgewars/uConsts.pas	Sat Jan 26 00:06:23 2008 +0000
+++ b/hedgewars/uConsts.pas	Sat Jan 26 10:21:43 2008 +0000
@@ -111,7 +111,7 @@
 
       MAXNAMELEN = 32;
 
-      COLOR_LAND = $FFFFFFF;
+      COLOR_LAND = $7FFFFFF;
 
       cifRandomize = $00000001;
       cifTheme     = $00000002;
diff -r ddbff94153e8 -r bebfae2063b3 hedgewars/uLand.pas
--- a/hedgewars/uLand.pas	Sat Jan 26 00:06:23 2008 +0000
+++ b/hedgewars/uLand.pas	Sat Jan 26 10:21:43 2008 +0000
@@ -313,9 +313,9 @@
       end;
 SDL_FreeSurface(tmpsurf);
 
-tmpsurf:= SDL_CreateRGBSurfaceFrom(@Land, 2048, 1024, 32, 2048*4, RMask, GMask, BMask, AMask);
+tmpsurf:= SDL_CreateRGBSurfaceFrom(@Land, 2048, 1024, 32, 2048*4, RMask, GMask, BMask, 0);
 SDLTry(tmpsurf <> nil, true);
-SDL_SetColorKey(tmpsurf, SDL_SRCCOLORKEY, SDL_MapRGB(tmpsurf^.format, $FF, $FF, $FF));
+//SDL_SetColorKey(tmpsurf, SDL_SRCCOLORKEY, SDL_MapRGB(tmpsurf^.format, $FF, $FF, $FF));
 SDL_UpperBlit(tmpsurf, nil, Surface, nil);
 SDL_FreeSurface(tmpsurf)
 end;
@@ -515,7 +515,7 @@
 
 AddProgress;
 
-tmpsurf:= SDL_CreateRGBSurface(SDL_SWSURFACE, 2048, 1024, 32, RMask, GMask, BMask, AMask);
+tmpsurf:= SDL_CreateRGBSurface(SDL_SWSURFACE, 2048, 1024, 32, RMask, GMask, BMask, 0);
 
 TryDo(tmpsurf <> nil, 'Error creating pre-land surface', true);
 ColorizeLand(tmpsurf);
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/AirBomb.png
Binary file share/hedgewars/Data/Graphics/AirBomb.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/BlueWater.png
Binary file share/hedgewars/Data/Graphics/BlueWater.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/Bomb.png
Binary file share/hedgewars/Data/Graphics/Bomb.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/Clouds.png
Binary file share/hedgewars/Data/Graphics/Clouds.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/Expl50.png
Binary file share/hedgewars/Data/Graphics/Expl50.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/Finger.png
Binary file share/hedgewars/Data/Graphics/Finger.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/FirstAid.png
Binary file share/hedgewars/Data/Graphics/FirstAid.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/Grenade.png
Binary file share/hedgewars/Data/Graphics/Grenade.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/MineOff.png
Binary file share/hedgewars/Data/Graphics/MineOff.png has changed
diff -r ddbff94153e8 -r bebfae2063b3 share/hedgewars/Data/Graphics/thinking.png
Binary file share/hedgewars/Data/Graphics/thinking.png has changed