summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorfrithrah <[email protected]>2021-03-19 18:13:55 +0000
committerGitHub <[email protected]>2021-03-19 19:13:55 +0100
commit2f367a905ed7fd525e6629146ddc642531a3c504 (patch)
treed0bbfec9bbaf8efaf60e1d3495fe9957c9e2e571 /examples
parent7a566a07ea92670bf302c3f1a4003b56f42a80ac (diff)
downloadraylib-2f367a905ed7fd525e6629146ddc642531a3c504.tar.gz
raylib-2f367a905ed7fd525e6629146ddc642531a3c504.zip
Changed DrawRing and DrawCircleSector angle params from int to float to allow greater accuracy. (#1656)
Co-authored-by: Simon <[email protected]>
Diffstat (limited to 'examples')
-rw-r--r--examples/shapes/shapes_draw_circle_sector.c4
-rw-r--r--examples/shapes/shapes_draw_ring.c4
2 files changed, 4 insertions, 4 deletions
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;