Jelajahi Sumber

+ Fixed ellipse drawing

michael 20 tahun lalu
induk
melakukan
5966644f25
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      fcl/image/fpcanvas.inc

+ 4 - 2
fcl/image/fpcanvas.inc

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