mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 14:09:16 +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+}
|
||||
|
||||
{$if defined(LCLWin32)}
|
||||
{$if defined(Windows)} // LCL defines like LCLWin32 don't reach the LCL
|
||||
{$define CDControlsDoDoubleBuffer}
|
||||
{$endif}
|
||||
|
||||
@ -910,19 +910,7 @@ var
|
||||
begin
|
||||
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);
|
||||
//{$endif}
|
||||
end;
|
||||
|
||||
procedure TCDControl.DrawToCanvas(ACanvas: TCanvas);
|
||||
|
Loading…
Reference in New Issue
Block a user