git-svn-id: trunk@14972 -
@@ -519,15 +519,15 @@ end;
function TFPReaderPNG.ColorGrayAlpha8 (CD:TColorData) : TFPColor;
var c : word;
begin
- c := CD and $FF00;
- c := c + (c shr 8);
+ c := CD and $00FF;
+ c := c + (c shl 8);
with result do
red := c;
green := c;
blue := c;
- c := CD and $FF;
- alpha := c + (c shl 8);
+ c := CD and $FF00;
+ alpha := c + (c shr 8);
end;