fix alpha channel in image rescaling
authorStepan777 <stepik-777@mail.ru>
Sat, 07 Jul 2012 19:59:44 +0400
changeset 7365 26df99967963
parent 7363 09af8bc9181f
child 7367 ad3f5f2e6ea9
fix alpha channel in image rescaling
hedgewars/uMisc.pas
--- a/hedgewars/uMisc.pas	Sat Jul 07 19:17:50 2012 +0400
+++ b/hedgewars/uMisc.pas	Sat Jul 07 19:59:44 2012 +0400
@@ -213,7 +213,7 @@
                 img[4*(w*i + j)+0]:= r div (k*k);
                 img[4*(w*i + j)+1]:= g div (k*k);
                 img[4*(w*i + j)+2]:= b div (k*k);
-                img[4*(w*i + j)+3]:= 0;
+                img[4*(w*i + j)+3]:= 255;
             end;
     end;
 end;