From 0895c8b8c4bf9e111492b19fba336d62d4a0b960 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 14 Apr 2025 12:37:12 +0200 Subject: [PATCH] Update raygui.h --- src/raygui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 430875d..1e1a482 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -3247,7 +3247,7 @@ int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, flo float temp = (maxValue - minValue)/2.0f; if (value == NULL) value = &temp; float oldValue = *value; - + int sliderWidth = GuiGetStyle(SLIDER, SLIDER_WIDTH); Rectangle slider = { bounds.x, bounds.y + GuiGetStyle(SLIDER, BORDER_WIDTH) + GuiGetStyle(SLIDER, SLIDER_PADDING), @@ -3363,7 +3363,7 @@ int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, GuiSetStyle(SLIDER, SLIDER_WIDTH, 0); result = GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue); GuiSetStyle(SLIDER, SLIDER_WIDTH, preSliderWidth); - + return result; }