You've already forked lazarus-ccr
* Keep the workaround to bug 8626
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1188 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -312,14 +312,6 @@ interface
|
|||||||
|
|
||||||
{$I VTConfig.inc}
|
{$I VTConfig.inc}
|
||||||
|
|
||||||
{$if defined(LCLGtk) or defined(LCLGtk2)}
|
|
||||||
{$define Gtk}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$if defined(Gtk)}
|
|
||||||
{$define ManualClipNeeded}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$ifdef Windows}
|
{$ifdef Windows}
|
||||||
Windows,
|
Windows,
|
||||||
@@ -351,6 +343,17 @@ uses
|
|||||||
const
|
const
|
||||||
{$I lclconstants.inc}
|
{$I lclconstants.inc}
|
||||||
|
|
||||||
|
{$if defined(LCLGtk) or defined(LCLGtk2)}
|
||||||
|
{$define Gtk}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
{$if defined(Gtk)}
|
||||||
|
{$define ManualClipNeeded}
|
||||||
|
{$ifdef lcl_release > 28}
|
||||||
|
{$define InvertDCOrigin}
|
||||||
|
{$endif}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
VTVersion = '4.8.6';
|
VTVersion = '4.8.6';
|
||||||
VTTreeStreamVersion = 2;
|
VTTreeStreamVersion = 2;
|
||||||
VTHeaderStreamVersion = 6; // The header needs an own stream version to indicate changes only relevant to the header.
|
VTHeaderStreamVersion = 6; // The header needs an own stream version to indicate changes only relevant to the header.
|
||||||
@@ -28188,7 +28191,7 @@ begin
|
|||||||
SetMapMode(Canvas.Handle, GetMapMode(TargetCanvas.Handle));
|
SetMapMode(Canvas.Handle, GetMapMode(TargetCanvas.Handle));
|
||||||
{$endif}
|
{$endif}
|
||||||
//Workaround to LCL bug 8626
|
//Workaround to LCL bug 8626
|
||||||
SetWindowOrgEx(Canvas.Handle, {$ifdef Gtk}-{$endif}Window.Left, 0, nil);
|
SetWindowOrgEx(Canvas.Handle, {$ifdef InvertDCOrigin}-{$endif}Window.Left, 0, nil);
|
||||||
R.Bottom := PaintInfo.Node.NodeHeight;
|
R.Bottom := PaintInfo.Node.NodeHeight;
|
||||||
end;
|
end;
|
||||||
// Set the origin of the canvas' brush. This depends on the node heights.
|
// Set the origin of the canvas' brush. This depends on the node heights.
|
||||||
|
Reference in New Issue
Block a user