mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 01:19:29 +02:00
Fixes (again) the doublebuffer in customdrawncontrols
git-svn-id: trunk@34452 -
This commit is contained in:
parent
1963fc9eb5
commit
865af6bdac
@ -11,7 +11,7 @@ unit customdrawncontrols;
|
|||||||
|
|
||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
{$if defined(LCLWin32)}
|
{$if defined(Windows)} // LCL defines like LCLWin32 don't reach the LCL
|
||||||
{$define CDControlsDoDoubleBuffer}
|
{$define CDControlsDoDoubleBuffer}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
@ -910,19 +910,7 @@ var
|
|||||||
begin
|
begin
|
||||||
inherited Paint;
|
inherited Paint;
|
||||||
|
|
||||||
(*{$ifdef CDControlsDoDoubleBuffer}
|
|
||||||
ABmp := TBitmap.Create;
|
|
||||||
try
|
|
||||||
ABmp.Width := Width;
|
|
||||||
ABmp.Height := Height;
|
|
||||||
DrawToCanvas(ABmp.Canvas);
|
|
||||||
Canvas.Draw(0, 0, ABmp);
|
|
||||||
finally
|
|
||||||
ABmp.Free;
|
|
||||||
end;
|
|
||||||
{$else}*)
|
|
||||||
DrawToCanvas(Canvas);
|
DrawToCanvas(Canvas);
|
||||||
//{$endif}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCDControl.DrawToCanvas(ACanvas: TCanvas);
|
procedure TCDControl.DrawToCanvas(ACanvas: TCanvas);
|
||||||
|
Loading…
Reference in New Issue
Block a user