mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 11:49:23 +02:00
+ Fixed ellipse drawing
This commit is contained in:
parent
bb7b812beb
commit
5966644f25
@ -441,6 +441,8 @@ begin
|
||||
p := Pen.style <> psClear;
|
||||
b := Brush.style <> bsClear;
|
||||
pb := false;
|
||||
dp:=False;
|
||||
db:=False;
|
||||
if p and (Pen is TFPCustomDrawPen) then
|
||||
begin
|
||||
p := false;
|
||||
@ -461,12 +463,12 @@ begin
|
||||
DoEllipseAndFill (bounds)
|
||||
else
|
||||
begin
|
||||
if p then
|
||||
if not dp then
|
||||
DoEllipse (bounds)
|
||||
else
|
||||
with bounds do
|
||||
TFPCustomDrawPen(Pen).Ellipse (left,top,right,bottom);
|
||||
if b then
|
||||
if not db then
|
||||
DoEllipseFill (bounds)
|
||||
else
|
||||
with bounds do
|
||||
|
Loading…
Reference in New Issue
Block a user