mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:29:24 +02:00
* Fix reading bitmap types 5,6 for PNM (fix by reporter of Bug ID #52564)
git-svn-id: trunk@26698 -
This commit is contained in:
parent
98dc27db1c
commit
9699890e3d
@ -136,7 +136,11 @@ var
|
||||
begin
|
||||
ReadHeader(Stream);
|
||||
Img.SetSize(FWidth,FHeight);
|
||||
FScanLineSize:=FBitPP*((FWidth+7)shr 3);
|
||||
Case FBitmapType of
|
||||
5,6 : FScanLineSize:=(FBitPP div 8) * FWidth;
|
||||
else
|
||||
FScanLineSize:=FBitPP*((FWidth+7)shr 3);
|
||||
end;
|
||||
GetMem(FScanLine,FScanLineSize);
|
||||
try
|
||||
for Row:=0 to img.Height-1 do
|
||||
|
Loading…
Reference in New Issue
Block a user