Browse Source

Update shapes_draw_ring.c

pull/2622/head
Ray 2 years ago
parent
commit
24e6bf0565
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      examples/shapes/shapes_draw_ring.c

+ 1
- 2
examples/shapes/shapes_draw_ring.c View File

@ -38,7 +38,6 @@ int main(void)
float startAngle = 0.0f; float startAngle = 0.0f;
float endAngle = 360.0f; float endAngle = 360.0f;
int segments = 0; int segments = 0;
int minSegments = 4;
bool drawRing = true; bool drawRing = true;
bool drawRingLines = false; bool drawRingLines = false;
@ -83,7 +82,7 @@ int main(void)
drawCircleLines = GuiCheckBox((Rectangle){ 600, 380, 20, 20 }, "Draw CircleLines", drawCircleLines); 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); DrawText(TextFormat("MODE: %s", (segments >= minSegments)? "MANUAL" : "AUTO"), 600, 270, 10, (segments >= minSegments)? MAROON : DARKGRAY);
DrawFPS(10, 10); DrawFPS(10, 10);

Loading…
Cancel
Save