diff -r 206aabea2229 -r a03c2d037e24 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Thu Oct 05 20:13:51 2006 +0000 +++ b/hedgewars/uStore.pas Sun Oct 08 18:17:52 2006 +0000 @@ -50,7 +50,7 @@ procedure StoreInit; begin -StoreSurface:= SDL_CreateRGBSurface(SDL_HWSURFACE, 576, 1024, cBits, PixelFormat.RMask, PixelFormat.GMask, PixelFormat.BMask, 0); +StoreSurface:= SDL_CreateRGBSurface(SDL_HWSURFACE, 576, 1024, cBits, PixelFormat.RMask, PixelFormat.GMask, PixelFormat.BMask, PixelFormat.AMask); TryDo( StoreSurface <> nil, errmsgCreateSurface + ': store' , true); SDL_FillRect(StoreSurface, nil, 0); @@ -107,7 +107,6 @@ clr.r:= Color shr 16; clr.g:= (Color shr 8) and $FF; clr.b:= Color and $FF; -clr.a:= $FF; tmpsurf:= TTF_RenderUTF8_Blended(Fontz[Font].Handle, PChar(s), clr); Result.x:= X + 3; Result.y:= Y + 1; @@ -251,14 +250,7 @@ TryDo(IOResult = 0, msgFailed, true); WriteLnToConsole(msgOK); val(s, cExplosionBorderColor, c); - if cFullScreen then - cExplosionBorderColor:= SDL_MapRGB(PixelFormat, (cExplosionBorderColor shr 16) and $FF, - (cExplosionBorderColor shr 8) and $FF, - cExplosionBorderColor and $FF) - else - cExplosionBorderColor:= SDL_MapRGB(LandSurface.format, (cExplosionBorderColor shr 16) and $FF, - (cExplosionBorderColor shr 8) and $FF, - cExplosionBorderColor and $FF) + AdjustColor(cExplosionBorderColor); end; begin @@ -382,7 +374,6 @@ clr.r:= $FF; clr.g:= $FF; clr.b:= $FF; -clr.a:= $FF; tmpsurf:= TTF_RenderUTF8_Solid(Fontz[Font].Handle, PChar(s), clr); SDL_UpperBlit(tmpsurf, nil, Surface, @r); SDL_FreeSurface(tmpsurf) @@ -439,7 +430,7 @@ var w, h: integer; begin TTF_SizeUTF8(Fontz[font].Handle, PChar(s), w, h); -Result:= SDL_CreateRGBSurface(SDL_HWSURFACE, w + 6, h + 2, cBits, PixelFormat.RMask, PixelFormat.GMask, PixelFormat.BMask, 0); +Result:= SDL_CreateRGBSurface(SDL_HWSURFACE, w + 6, h + 2, cBits, PixelFormat.RMask, PixelFormat.GMask, PixelFormat.BMask, PixelFormat.AMask); TryDo(Result <> nil, 'RenderString: fail to create surface', true); WriteInRoundRect(Result, 0, 0, Color, font, s); TryDo(SDL_SetColorKey(Result, SDL_SRCCOLORKEY or SDL_RLEACCEL, 0) = 0, errmsgTransparentSet, true)