Parcourir la source

OutlineOval improvement

Brian Fiete il y a 5 mois
Parent
commit
c3ad1b9ed1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      BeefLibs/Beefy2D/src/gfx/Graphics.bf

+ 1 - 1
BeefLibs/Beefy2D/src/gfx/Graphics.bf

@@ -1038,7 +1038,7 @@ namespace Beefy.gfx
 
 		public void OutlineOval(float x, float y, float radiusX, float radiusY)
 		{
-			int numSections = 40;
+			int numSections = 12 + (.)((radiusX + radiusY) * 0.15f);
 			for (int section < numSections)
 			{
 				float ang0 = (section * Math.PI_f * 2) / numSections;