TAChart: remove DoubleBuffered hack because LCL fully supports it now

git-svn-id: trunk@58101 -
This commit is contained in:
ondrej 2018-06-03 20:51:59 +00:00
parent 79aba78f15
commit 5854ef0c77

View File

@ -22,7 +22,7 @@ unit TAGraph;
interface
uses
Graphics, Classes, Controls, LCLIntf, LCLType, SysUtils,
Graphics, Classes, Controls, LCLType, SysUtils,
TAChartAxis, TAChartAxisUtils, TAChartUtils, TADrawUtils, TAGUIConnector,
TALegend, TATextElements, TATypes;
@ -312,7 +312,6 @@ type
{$IFDEF LCLGtk2}
procedure DoOnResize; override;
{$ENDIF}
procedure Loaded; override;
procedure Notification(
AComponent: TComponent; AOperation: TOperation); override;
procedure PrepareAxis(ADrawer: IChartDrawer);
@ -1311,13 +1310,6 @@ begin
inherited;
end;
procedure TChart.Loaded;
begin
inherited;
if not (csDesigning in ComponentState) then
DoubleBuffered := DoubleBuffered or (GetSystemMetrics(SM_REMOTESESSION)=0); // force DoubleBuffered if not used in remote session
end;
procedure TChart.LockClipRect;
begin
FSavedClipRect := FClipRect;