diff options
| author | Ray <[email protected]> | 2022-08-02 09:58:56 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-08-02 09:58:56 +0200 |
| commit | 24e6bf0565b2e083cdb26aa5e33f58ec3016073f (patch) | |
| tree | fa9f2d97dd6245da170704f113b775a92a044d46 /examples | |
| parent | 4492e64cb52aba8312d11082bda14e61c846bafb (diff) | |
| download | raylib-24e6bf0565b2e083cdb26aa5e33f58ec3016073f.tar.gz raylib-24e6bf0565b2e083cdb26aa5e33f58ec3016073f.zip | |
Update shapes_draw_ring.c
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shapes/shapes_draw_ring.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/shapes/shapes_draw_ring.c b/examples/shapes/shapes_draw_ring.c index 879ef6bf..6225d473 100644 --- a/examples/shapes/shapes_draw_ring.c +++ b/examples/shapes/shapes_draw_ring.c @@ -38,7 +38,6 @@ int main(void) float startAngle = 0.0f; float endAngle = 360.0f; int segments = 0; - int minSegments = 4; bool drawRing = true; bool drawRingLines = false; @@ -83,7 +82,7 @@ int main(void) drawCircleLines = GuiCheckBox((Rectangle){ 600, 380, 20, 20 }, "Draw CircleLines", drawCircleLines); //------------------------------------------------------------------------------ - int minSegments = (int)ceilf((endAngle - startAngle) / 90); + int minSegments = (int)ceilf((endAngle - startAngle)/90); DrawText(TextFormat("MODE: %s", (segments >= minSegments)? "MANUAL" : "AUTO"), 600, 270, 10, (segments >= minSegments)? MAROON : DARKGRAY); DrawFPS(10, 10); |
