mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 15:32:20 +02:00
* Fix the byte -> word expansion of the alpha channel on palette enties of a PNG image
git-svn-id: trunk@15926 -
This commit is contained in:
parent
349e5348f5
commit
fb2fc006aa
@ -196,7 +196,7 @@ procedure TFPReaderPNG.HandleAlpha;
|
||||
begin
|
||||
c := ThePalette[r];
|
||||
a := data^[r];
|
||||
c.alpha := (a shl 16) + a;
|
||||
c.alpha := (a shl 8) + a;
|
||||
ThePalette[r] := c;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user