mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 22:12:44 +02:00
Attempt to fix double buffering in Windows
git-svn-id: trunk@34449 -
This commit is contained in:
parent
0383037340
commit
d5c7c05a44
@ -910,7 +910,7 @@ var
|
||||
begin
|
||||
inherited Paint;
|
||||
|
||||
{$ifdef CDControlsDoDoubleBuffer}
|
||||
(*{$ifdef CDControlsDoDoubleBuffer}
|
||||
ABmp := TBitmap.Create;
|
||||
try
|
||||
ABmp.Width := Width;
|
||||
@ -920,9 +920,9 @@ begin
|
||||
finally
|
||||
ABmp.Free;
|
||||
end;
|
||||
{$else}
|
||||
{$else}*)
|
||||
DrawToCanvas(Canvas);
|
||||
{$endif}
|
||||
//{$endif}
|
||||
end;
|
||||
|
||||
procedure TCDControl.DrawToCanvas(ACanvas: TCanvas);
|
||||
@ -963,6 +963,9 @@ begin
|
||||
inherited Create(AOwner);
|
||||
CreateControlStateEx;
|
||||
PrepareCurrentDrawer();
|
||||
{$ifdef CDControlsDoDoubleBuffer}
|
||||
DoubleBuffered := True;
|
||||
{$endif}
|
||||
end;
|
||||
|
||||
destructor TCDControl.Destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user