diff options
Diffstat (limited to 'raylib/examples/shapes/shapes_draw_circle_sector.c')
| -rw-r--r-- | raylib/examples/shapes/shapes_draw_circle_sector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raylib/examples/shapes/shapes_draw_circle_sector.c b/raylib/examples/shapes/shapes_draw_circle_sector.c index 1c283e1..90e8e6a 100644 --- a/raylib/examples/shapes/shapes_draw_circle_sector.c +++ b/raylib/examples/shapes/shapes_draw_circle_sector.c @@ -70,7 +70,7 @@ int main(void) GuiSliderBar((Rectangle){ 600, 170, 120, 20}, "Segments", NULL, &segments, 0, 100); //------------------------------------------------------------------------------ - minSegments = (int)ceilf((endAngle - startAngle) / 90); + minSegments = truncf(ceilf((endAngle - startAngle) / 90)); DrawText(TextFormat("MODE: %s", (segments >= minSegments)? "MANUAL" : "AUTO"), 600, 200, 10, (segments >= minSegments)? MAROON : DARKGRAY); DrawFPS(10, 10); |
