git-svn-id: trunk@57268 -
This commit is contained in:
ondrej 2018-02-07 16:59:31 +00:00
parent 90e098228c
commit 16b7c2ba09

View File

@ -25,20 +25,6 @@ begin
FCanvas := TControlCanvas.Create;
TControlCanvas(FCanvas).Control := Self;
// ----PREVIOUS COMMENT-----
// custom controls are painted by the LCL, not the interface, so enable
// double buffering. It's up to the interface to do the actual
// doublebuffering.
// ----Micha's comment----
// If double buffering has to be enabled before LCL can draw anything,
// something is wrong. In the overridden Paint method you should always be
// able to draw, independent of DoubleBuffered setting.
//
// Disable the switch by default:
// 1) it greatly improves resizing speed (it doesn't feel like java then ;) )
// 2) VCL compatible
// 3) users of LCL should enable switch per control if they so desire
DoubleBuffered:=false;
end;
{------------------------------------------------------------------------------