Update raygui.h

This commit is contained in:
Ray
2025-04-14 12:37:12 +02:00
parent c623a92f83
commit 0895c8b8c4

View File

@ -3247,7 +3247,7 @@ int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, flo
float temp = (maxValue - minValue)/2.0f; float temp = (maxValue - minValue)/2.0f;
if (value == NULL) value = &temp; if (value == NULL) value = &temp;
float oldValue = *value; float oldValue = *value;
int sliderWidth = GuiGetStyle(SLIDER, SLIDER_WIDTH); int sliderWidth = GuiGetStyle(SLIDER, SLIDER_WIDTH);
Rectangle slider = { bounds.x, bounds.y + GuiGetStyle(SLIDER, BORDER_WIDTH) + GuiGetStyle(SLIDER, SLIDER_PADDING), 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); GuiSetStyle(SLIDER, SLIDER_WIDTH, 0);
result = GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue); result = GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue);
GuiSetStyle(SLIDER, SLIDER_WIDTH, preSliderWidth); GuiSetStyle(SLIDER, SLIDER_WIDTH, preSliderWidth);
return result; return result;
} }