mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +02:00
little speedup for previous commit from giantm
git-svn-id: trunk@12560 -
This commit is contained in:
parent
b9e61a07f7
commit
7d152dfb5b
@ -194,7 +194,7 @@ class procedure TWin32WSCustomImageList.AddData(AListHandle: TLCLIntfHandle; ACo
|
|||||||
end;
|
end;
|
||||||
// finish mask shifting
|
// finish mask shifting
|
||||||
if (AWidth and $7) <> 0 then
|
if (AWidth and $7) <> 0 then
|
||||||
P^ := P^ shl (7 - (AWidth mod 8));
|
P^ := P^ shl (7 - (AWidth and 7));
|
||||||
Inc(LinePtr, MaskStride);
|
Inc(LinePtr, MaskStride);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user