- Start conveting pngs to have alpha-channel
authorunc0rr
Sat, 26 Jan 2008 10:21:43 +0000
changeset 758 bebfae2063b3
parent 757 ddbff94153e8
child 759 8da05b316d81
- Start conveting pngs to have alpha-channel
hedgewars/uConsts.pas
hedgewars/uLand.pas
share/hedgewars/Data/Graphics/AirBomb.png
share/hedgewars/Data/Graphics/BlueWater.png
share/hedgewars/Data/Graphics/Bomb.png
share/hedgewars/Data/Graphics/Clouds.png
share/hedgewars/Data/Graphics/Expl50.png
share/hedgewars/Data/Graphics/Finger.png
share/hedgewars/Data/Graphics/FirstAid.png
share/hedgewars/Data/Graphics/Grenade.png
share/hedgewars/Data/Graphics/MineOff.png
share/hedgewars/Data/Graphics/thinking.png
--- 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;
--- 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);
Binary file share/hedgewars/Data/Graphics/AirBomb.png has changed
Binary file share/hedgewars/Data/Graphics/BlueWater.png has changed
Binary file share/hedgewars/Data/Graphics/Bomb.png has changed
Binary file share/hedgewars/Data/Graphics/Clouds.png has changed
Binary file share/hedgewars/Data/Graphics/Expl50.png has changed
Binary file share/hedgewars/Data/Graphics/Finger.png has changed
Binary file share/hedgewars/Data/Graphics/FirstAid.png has changed
Binary file share/hedgewars/Data/Graphics/Grenade.png has changed
Binary file share/hedgewars/Data/Graphics/MineOff.png has changed
Binary file share/hedgewars/Data/Graphics/thinking.png has changed