Browse Source

draft pen phong aliased

Johann ELSASS 5 years ago
parent
commit
540f333f4d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lazpaintcontrols/lcvectortextshapes.pas

+ 4 - 1
lazpaintcontrols/lcvectortextshapes.pas

@@ -1366,7 +1366,10 @@ var
       pts[i].Offset(AOffset.x, AOffset.Y);
 
     ADestination.FillMode:= fmWinding;
-    ADestination.FillPolyAntialias(pts, ABrush, false);
+    if (ADraft and PenPhong) or Aliased then
+      ADestination.FillPoly(pts, ABrush, false)
+    else
+      ADestination.FillPolyAntialias(pts, ABrush, false);
   end;
 
   procedure RenderPen(ADestination: TBGRACustomBitmap; AOffset: TPoint);