fix one range check error, formatting

git-svn-id: trunk@14251 -
This commit is contained in:
paul 2008-02-26 04:04:06 +00:00
parent 85e93e8f14
commit 7b7eafc985
2 changed files with 7 additions and 7 deletions

View File

@ -194,7 +194,7 @@ class procedure TWin32WSCustomImageList.AddData(AListHandle: TLCLIntfHandle; ACo
P^ := (P^ and $FE) or ((not AData^.Alpha) shr 7);
if x and $7 = 0
then Inc(p)
else P^ := P^ shl 1;
else P^ := Byte(P^ shl 1);
Inc(AData);
end;
// finish mask shifting