Browse Source

phong render size limit

Johann 6 năm trước cách đây
mục cha
commit
43e2d18bf1
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      lazpaintcontrols/lcvectorrectshapes.pas

+ 4 - 0
lazpaintcontrols/lcvectorrectshapes.pas

@@ -1194,6 +1194,10 @@ begin
   begin
     if mapWidth > 100 then approxFactor:= min(approxFactor, 100/mapWidth);
     if mapHeight > 100 then approxFactor:= min(approxFactor, 100/mapHeight);
+  end else
+  begin
+    if mapWidth > 800 then approxFactor:= min(approxFactor, 800/mapWidth);
+    if mapHeight > 800 then approxFactor:= min(approxFactor, 800/mapHeight);
   end;
   mapWidth:= ceil(mapWidth*approxFactor);
   mapHeight:= ceil(mapHeight*approxFactor);