From 2bbf92ad5ae7708bf18ac7ef333e9a979d8d1bde Mon Sep 17 00:00:00 2001 From: Uneven Prankster Date: Thu, 16 Nov 2023 21:12:27 -0300 Subject: Working so hard like a soldier Can't afford a thing on TV --- raylib/examples/shapes/shapes_draw_circle_sector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'raylib/examples/shapes/shapes_draw_circle_sector.c') 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); -- cgit v1.2.3