mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 04:48:03 +02:00
LCL: Fix error shown in png testsuite "basn6a16". Was a regression by r41838 #8a1c1b7263. Issue #25055, patch from ocean.
git-svn-id: trunk@46241 -
This commit is contained in:
parent
6acfc0801e
commit
24997db694
@ -1535,15 +1535,6 @@ var
|
||||
PrecMask: QWord;
|
||||
EightBytes: QWord;
|
||||
begin
|
||||
if Prec=16
|
||||
then begin
|
||||
// fast update
|
||||
P:=@(TheData[Position.Byte]);
|
||||
inc(P,6-Shift shr 3);
|
||||
PWORD(P)^:=Bits;
|
||||
Exit;
|
||||
end;
|
||||
|
||||
P:=@(TheData[Position.Byte]);
|
||||
PrecMask:=(Qword(1) shl Prec)-1;
|
||||
Bits:=Bits shr (16-Prec);
|
||||
|
Loading…
Reference in New Issue
Block a user