mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 15:20:32 +02:00
* Fix to correctly write gray values from Johann (Bug ID 27924)
git-svn-id: trunk@30696 -
This commit is contained in:
parent
49f3473735
commit
e86aa04433
@ -475,13 +475,13 @@ end;
|
||||
function TFPWriterPNG.ColorDataGrayAB(color:TFPColor) : TColorData;
|
||||
begin
|
||||
result := ColorDataGrayB (color);
|
||||
result := (result shl 8) and hi(color.Alpha);
|
||||
result := (color.Alpha and $ff00) or result;
|
||||
end;
|
||||
|
||||
function TFPWriterPNG.ColorDataGrayAW(color:TFPColor) : TColorData;
|
||||
begin
|
||||
result := ColorDataGrayW (color);
|
||||
result := (result shl 16) and color.Alpha;
|
||||
result := (color.Alpha shl 16) or result;
|
||||
end;
|
||||
|
||||
function TFPWriterPNG.ColorDataColorB(color:TFPColor) : TColorData;
|
||||
|
Loading…
Reference in New Issue
Block a user