From c2bee39e0b502d750cd548de469215d76284cbd7 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Mon, 5 Apr 2021 13:50:07 +0200 Subject: [PATCH] REVIEWED: GuiProgressBar() #128 --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index 72b5523..1c9c98a 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1925,7 +1925,7 @@ float GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRig // Update control //-------------------------------------------------------------------- - if (state != GUI_STATE_DISABLED) progress.width = ((int)(value/(maxValue - minValue))*(float)(bounds.width - 2*GuiGetStyle(PROGRESSBAR, BORDER_WIDTH))); + if (state != GUI_STATE_DISABLED) progress.width = ((float)(value/(maxValue - minValue))*(float)(bounds.width - 2*GuiGetStyle(PROGRESSBAR, BORDER_WIDTH))); //-------------------------------------------------------------------- // Draw control