mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 01:19:29 +02:00
Merge branch 'canvas_test_gtk2_fix' into 'main'
CanvasTest Example fix under GTK2 See merge request freepascal.org/lazarus/lazarus!460
This commit is contained in:
commit
3e6a605846
@ -42,9 +42,12 @@ var
|
||||
begin
|
||||
Shape := TBitmap.Create;
|
||||
try
|
||||
Shape.Width := 200;
|
||||
Shape.Height := 200;
|
||||
Shape.Canvas.Ellipse(0, 0, 200, 200);
|
||||
{$IFDEF LCLGtk2}
|
||||
Shape.Monochrome := True;
|
||||
{$ENDIF}
|
||||
Shape.Width := Width;
|
||||
Shape.Height := Height;
|
||||
Shape.Canvas.Ellipse(0, 0, Width, Height);
|
||||
SetShape(Shape);
|
||||
finally
|
||||
Shape.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user