laz.virutaltrees / Cocoa: fix the issue that the first line displayed abnormally when scrolling

for example, there are many items in Lazarus IDE BreakPoints Dlg.
This commit is contained in:
rich2014 2024-06-09 15:10:53 +08:00
parent db6ce9345e
commit 7a7fad9190

View File

@ -31174,12 +31174,14 @@ begin
StretchBlt( StretchBlt(
TargetCanvas.Handle, TargetCanvas.Handle,
Left, Left,
Top {$ifdef ManualClipNeeded} + YCorrect{$endif}, Top + YCorrect,
PaintWidth, PaintInfo.Node.NodeHeight, PaintWidth,
PaintInfo.Node.NodeHeight - YCorrect,
Canvas.Handle, Canvas.Handle,
Window.Left, Window.Left,
{$ifdef ManualClipNeeded}YCorrect{$else}0{$endif}, Round(YCorrect * sc),
NodeBitmap.Width, NodeBitmap.Height, NodeBitmap.Width,
NodeBitmap.Height - Round(YCorrect * sc),
SRCCOPY SRCCOPY
); );
{$else} {$else}