From a09e6ab7e0327b62e45979d0924d6f119f3c9a80 Mon Sep 17 00:00:00 2001 From: blikblum Date: Sun, 27 Jun 2010 18:27:00 +0000 Subject: [PATCH] * Removed workaround to LCL bug 8626 (fixed in 0.9.29) git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1238 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../virtualtreeview-new/branches/4.8/VirtualTrees.pas | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas index 100b8a6ab..e1cc2c5d2 100644 --- a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas +++ b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas @@ -349,9 +349,6 @@ const {$if defined(Gtk)} {$define ManualClipNeeded} - {$ifdef lcl_release > 28} - {$define InvertDCOrigin} - {$endif} {$endif} VTVersion = '4.8.6'; @@ -28190,8 +28187,7 @@ begin {$ifndef Gtk} SetMapMode(Canvas.Handle, GetMapMode(TargetCanvas.Handle)); {$endif} - //Workaround to LCL bug 8626 - SetWindowOrgEx(Canvas.Handle, {$ifdef InvertDCOrigin}-{$endif}Window.Left, 0, nil); + SetWindowOrgEx(Canvas.Handle, Window.Left, 0, nil); R.Bottom := PaintInfo.Node.NodeHeight; end; // Set the origin of the canvas' brush. This depends on the node heights. @@ -28502,7 +28498,7 @@ begin {$ifdef DEBUG_VTV}Logger.Send([lcPaintDetails],'TargetRect',TargetRect);{$endif} {$ifdef DEBUG_VTV}Logger.Send([lcPaintDetails],'NodeBitmap Width: %d Height: %d',[NodeBitmap.Width,NodeBitmap.Height]);{$endif} // Call back application/descendants whether they want to erase this area. - SetWindowOrgEx(NodeBitmap.Canvas.Handle,{$ifndef Windows}-{$endif}Target.X, 0, nil); + SetWindowOrgEx(NodeBitmap.Canvas.Handle, Target.X, 0, nil); if not DoPaintBackground(NodeBitmap.Canvas, TargetRect) then begin if UseBackground then