mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 01:19:29 +02:00
lcl, win32: fix 2 bitmap mask problems
git-svn-id: trunk@12559 -
This commit is contained in:
parent
3be134f57d
commit
b9e61a07f7
@ -319,7 +319,7 @@ begin
|
|||||||
if H < 0 then Exit;
|
if H < 0 then Exit;
|
||||||
|
|
||||||
// calc destination rowstride
|
// calc destination rowstride
|
||||||
RS := (W * ABPP) shr 3;
|
RS := (W * ABPP + 7) shr 3;
|
||||||
x := RS and SIZEMAP[ADestinationEnd];
|
x := RS and SIZEMAP[ADestinationEnd];
|
||||||
if x <> 0
|
if x <> 0
|
||||||
then Inc(RS, 1 + SIZEMAP[ADestinationEnd] - x);
|
then Inc(RS, 1 + SIZEMAP[ADestinationEnd] - x);
|
||||||
|
@ -192,6 +192,9 @@ class procedure TWin32WSCustomImageList.AddData(AListHandle: TLCLIntfHandle; ACo
|
|||||||
else P^ := P^ shl 1;
|
else P^ := P^ shl 1;
|
||||||
Inc(AData);
|
Inc(AData);
|
||||||
end;
|
end;
|
||||||
|
// finish mask shifting
|
||||||
|
if (AWidth and $7) <> 0 then
|
||||||
|
P^ := P^ shl (7 - (AWidth mod 8));
|
||||||
Inc(LinePtr, MaskStride);
|
Inc(LinePtr, MaskStride);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user