mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 13:49:15 +02:00
* fix for mantis 17840, rounding of bits/line
git-svn-id: trunk@16313 -
This commit is contained in:
parent
e3fb3230ef
commit
fb13dfc18f
@ -136,7 +136,7 @@ var
|
||||
begin
|
||||
ReadHeader(Stream);
|
||||
Img.SetSize(FWidth,FHeight);
|
||||
FScanLineSize:=FBitPP*((FWidth+7)shr 3);
|
||||
FScanLineSize:=(FBitPP*FWidth+7) shr 3; // (bits/line +7)
|
||||
GetMem(FScanLine,FScanLineSize);
|
||||
try
|
||||
for Row:=0 to img.Height-1 do
|
||||
|
Loading…
Reference in New Issue
Block a user