hedgewars/uStore.pas
changeset 704 9b096d05004e
parent 690 e9d35e319328
child 753 40fc0deb388f
--- a/hedgewars/uStore.pas	Sat Jan 12 22:41:03 2008 +0000
+++ b/hedgewars/uStore.pas	Mon Jan 14 17:00:54 2008 +0000
@@ -132,6 +132,7 @@
 
       HealthSurf:= SDL_CreateRGBSurface(SDL_HWSURFACE, r.w, r.h, cBits, PixelFormat^.RMask, PixelFormat^.GMask, PixelFormat^.BMask, PixelFormat^.AMask);
       TryDo(HealthSurf <> nil, errmsgCreateSurface, true);
+      TryDo(SDL_SetColorKey(HealthSurf, SDL_SRCCOLORKEY or SDL_RLEACCEL, 0) = 0, errmsgTransparentSet, true);
 
       DrawRoundRect(@r, cWhiteColor, cColorNearBlack, HealthSurf, true);
       rr:= r;