From df5ee2a4205e5211116752b5628fb3f1520f52cc Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Wed, 12 Jul 2023 07:30:03 -0400 Subject: [PATCH] Fix GuiSlider value pointer (#298) --- examples/custom_sliders/custom_sliders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/custom_sliders/custom_sliders.c b/examples/custom_sliders/custom_sliders.c index 50a9434..4474488 100644 --- a/examples/custom_sliders/custom_sliders.c +++ b/examples/custom_sliders/custom_sliders.c @@ -75,7 +75,7 @@ int main() // raygui: controls drawing //---------------------------------------------------------------------------------- GuiGroupBox((Rectangle){ 66, 24, 276, 312 }, "STANDARD"); - value = GuiSlider((Rectangle){ 96, 48, 216, 16 }, TextFormat("%0.2f", value), NULL, value, 0.0f, 1.0f); + value = GuiSlider((Rectangle){ 96, 48, 216, 16 }, TextFormat("%0.2f", value), NULL, &value, 0.0f, 1.0f); value = GuiVerticalSlider((Rectangle){ 120, 120, 24, 192 }, TextFormat("%0.2f", value), NULL, value, 0.0f, 1.0f); value = GuiVerticalSliderBar((Rectangle){ 264, 120, 24, 192 }, TextFormat("%0.2f", value), NULL, value, 0.0f, 1.0f);