瀏覽代碼

draft pen phong aliased

Johann ELSASS 5 年之前
父節點
當前提交
540f333f4d
共有 1 個文件被更改,包括 4 次插入1 次删除
  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);