synedit: ignore themes for DoubleBuffered

git-svn-id: trunk@57309 -
This commit is contained in:
ondrej 2018-02-16 11:56:02 +00:00
parent a7f4d141f1
commit 1ee1b616cc

View File

@ -2111,7 +2111,7 @@ begin
{$IF NOT DEFINED(EnableDoubleBuf) AND DEFINED(LCLWin32)}
if not (csDesigning in ComponentState) then
DoubleBuffered := GetWin32ThemedDoubleBuffered(Self);
DoubleBuffered := ((WindowsVersion <= wvVista) and (GetSystemMetrics(SM_REMOTESESSION)=0));
{$ENDIF}
fTextDrawer := TheTextDrawer.Create([fsBold], fFontDummy);