Explorar o código

* Fix the byte -> word expansion of the alpha channel on palette enties of a PNG image

git-svn-id: trunk@15926 -
Marc Weustink %!s(int64=15) %!d(string=hai) anos
pai
achega
fb2fc006aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-image/src/fpreadpng.pp

+ 1 - 1
packages/fcl-image/src/fpreadpng.pp

@@ -196,7 +196,7 @@ procedure TFPReaderPNG.HandleAlpha;
           begin
           begin
           c := ThePalette[r];
           c := ThePalette[r];
           a := data^[r];
           a := data^[r];
-          c.alpha := (a shl 16) + a;
+          c.alpha := (a shl 8) + a;
           ThePalette[r] := c;
           ThePalette[r] := c;
           end;
           end;
         end;
         end;