From 0cbbb484106eec50551ceeb140a89231cc089f7d Mon Sep 17 00:00:00 2001 From: Wirgiliusz Date: Wed, 24 Feb 2021 09:28:21 +0100 Subject: [PATCH] Fixed bug with stuck slide bars (#122) Corrected arguments taken by GuiSliderBar functions that correspond to panelContentRec dimensions --- examples/scroll_panel/gui_scroll_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/scroll_panel/gui_scroll_panel.c b/examples/scroll_panel/gui_scroll_panel.c index 3eb5dd4..7d492d0 100644 --- a/examples/scroll_panel/gui_scroll_panel.c +++ b/examples/scroll_panel/gui_scroll_panel.c @@ -78,8 +78,8 @@ int main() showContentArea = GuiCheckBox((Rectangle){ 565, 80, 20, 20 }, "SHOW CONTENT AREA", showContentArea); - panelContentRec.width = GuiSliderBar((Rectangle){ 590, 385, 145, 15}, "WIDTH", TextFormat("%i", (int)panelContentRec.width), 1, 600, true); - panelContentRec.height = GuiSliderBar((Rectangle){ 590, 410, 145, 15 }, "HEIGHT", TextFormat("%i", (int)panelContentRec.height), 1, 400, true); + panelContentRec.width = GuiSliderBar((Rectangle){ 590, 385, 145, 15}, "WIDTH", TextFormat("%i", (int)panelContentRec.width), panelContentRec.width, 1, 600); + panelContentRec.height = GuiSliderBar((Rectangle){ 590, 410, 145, 15 }, "HEIGHT", TextFormat("%i", (int)panelContentRec.height), panelContentRec.height, 1, 400); EndDrawing(); //----------------------------------------------------------------------------------