From 2f367a905ed7fd525e6629146ddc642531a3c504 Mon Sep 17 00:00:00 2001 From: frithrah <46793160+frithrah@users.noreply.github.com> Date: Fri, 19 Mar 2021 18:13:55 +0000 Subject: Changed DrawRing and DrawCircleSector angle params from int to float to allow greater accuracy. (#1656) Co-authored-by: Simon --- examples/shapes/shapes_draw_circle_sector.c | 4 ++-- examples/shapes/shapes_draw_ring.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/shapes/shapes_draw_circle_sector.c b/examples/shapes/shapes_draw_circle_sector.c index 92ce1f4a..7ea894a9 100644 --- a/examples/shapes/shapes_draw_circle_sector.c +++ b/examples/shapes/shapes_draw_circle_sector.c @@ -28,8 +28,8 @@ int main(void) Vector2 center = {(GetScreenWidth() - 300)/2, GetScreenHeight()/2 }; float outerRadius = 180.0f; - int startAngle = 0; - int endAngle = 180; + float startAngle = 0.0f; + float endAngle = 180.0f; int segments = 0; SetTargetFPS(60); // Set our game to run at 60 frames-per-second diff --git a/examples/shapes/shapes_draw_ring.c b/examples/shapes/shapes_draw_ring.c index bc8287ef..d6085036 100644 --- a/examples/shapes/shapes_draw_ring.c +++ b/examples/shapes/shapes_draw_ring.c @@ -30,8 +30,8 @@ int main(void) float innerRadius = 80.0f; float outerRadius = 190.0f; - int startAngle = 0; - int endAngle = 360; + float startAngle = 0.0f; + float endAngle = 360.0f; int segments = 0; bool drawRing = true; -- cgit v1.2.3