hedgewars/uRenderUtils.pas
changeset 12102 51596d30a724
parent 12101 2e70ef81e281
child 12591 7bae1fab444b
--- a/hedgewars/uRenderUtils.pas	Sun Dec 04 01:07:36 2016 +0100
+++ b/hedgewars/uRenderUtils.pas	Sun Dec 04 02:02:18 2016 +0100
@@ -210,7 +210,8 @@
         bT:= (bD * (255 - aT) + bT * aT) div 255;
         aT:= aD + ((255 - LongInt(aD)) * aT div 255);
 
-        destPixels^[dpi]:= SDL_MapRGBA(dest^.format, rT, gT, bT, aT);
+        destPixels^[dpi]:= SDL_MapRGBA(dest^.format, rT, gT, bT, Byte(aT));
+
         end;
 
     SDL_UnlockSurface(src);