+ Fixed ellipse drawing

This commit is contained in:
michael 2005-01-24 21:50:08 +00:00
parent bb7b812beb
commit 5966644f25

View File

@ -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