little speedup for previous commit from giantm

git-svn-id: trunk@12560 -
This commit is contained in:
paul 2007-10-23 08:10:49 +00:00
parent b9e61a07f7
commit 7d152dfb5b

View File

@ -194,7 +194,7 @@ class procedure TWin32WSCustomImageList.AddData(AListHandle: TLCLIntfHandle; ACo
end;
// finish mask shifting
if (AWidth and $7) <> 0 then
P^ := P^ shl (7 - (AWidth mod 8));
P^ := P^ shl (7 - (AWidth and 7));
Inc(LinePtr, MaskStride);
end;