SynEdit: remove DoubleBuffered hack because LCL fully supports it now

git-svn-id: trunk@58100 -
This commit is contained in:
ondrej 2018-06-03 20:51:32 +00:00
parent 70b731c254
commit 79aba78f15
3 changed files with 0 additions and 6 deletions

View File

@ -607,7 +607,6 @@ begin
KeyPreview:= True;
// we have no resource => must be constructed using CreateNew
inherited CreateNew(AOwner, 1);
DoubleBuffered := GetSystemMetrics(SM_REMOTESESSION)=0;
FItemList := TStringList.Create;
Scroll := TSynBaseCompletionFormScrollBar.Create(self);
Scroll.Kind := sbVertical;

View File

@ -8227,8 +8227,6 @@ end;
procedure TCustomSynEdit.CreateWnd;
begin
if not (csDesigning in ComponentState) then
DoubleBuffered := DoubleBuffered or (GetSystemMetrics(SM_REMOTESESSION)=0); // force DoubleBuffered if not used in remote session
inherited;
if (eoDropFiles in fOptions) and not (csDesigning in ComponentState) then
// ToDo DragAcceptFiles

View File

@ -1308,8 +1308,6 @@ constructor TSynChildWinControl.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
BorderStyle := bsNone;
if AOwner is TWinControl then
DoubleBuffered := TWinControl(AOwner).DoubleBuffered;
end;
{ TSynGutterLineOverview }
@ -1321,7 +1319,6 @@ begin
TSynEditStringList(TextBuffer).AddNotifyHandler(senrTextBufferChanged, @BufferChanged);
FWinControl := TSynChildWinControl.Create(Self);
FWinControl.Parent := SynEdit;
FWinControl.DoubleBuffered := SynEdit.DoubleBuffered;
FWinControl.OnPaint := @PaintWinControl;
FLineMarks := TSynGutterLOvLineMarksList.Create;