Procházet zdrojové kódy

phong render size limit

Johann před 6 roky
rodič
revize
43e2d18bf1
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      lazpaintcontrols/lcvectorrectshapes.pas

+ 4 - 0
lazpaintcontrols/lcvectorrectshapes.pas

@@ -1194,6 +1194,10 @@ begin
   begin
   begin
     if mapWidth > 100 then approxFactor:= min(approxFactor, 100/mapWidth);
     if mapWidth > 100 then approxFactor:= min(approxFactor, 100/mapWidth);
     if mapHeight > 100 then approxFactor:= min(approxFactor, 100/mapHeight);
     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;
   end;
   mapWidth:= ceil(mapWidth*approxFactor);
   mapWidth:= ceil(mapWidth*approxFactor);
   mapHeight:= ceil(mapHeight*approxFactor);
   mapHeight:= ceil(mapHeight*approxFactor);