diff options
| author | frithrah <[email protected]> | 2021-03-19 18:13:55 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-19 19:13:55 +0100 |
| commit | 2f367a905ed7fd525e6629146ddc642531a3c504 (patch) | |
| tree | d0bbfec9bbaf8efaf60e1d3495fe9957c9e2e571 /examples | |
| parent | 7a566a07ea92670bf302c3f1a4003b56f42a80ac (diff) | |
| download | raylib-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.c | 4 | ||||
| -rw-r--r-- | examples/shapes/shapes_draw_ring.c | 4 |
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; |
