From 72f9950ce903f98357dd76ec469c2d3a85f447d2 Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Wed, 26 Sep 2018 15:06:03 +0100 Subject: [PATCH] Forgot to include dropOpen reset Reset dropOpen when dropdown closed. Forgot to add in previous commit --- src/raygui.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raygui.h b/src/raygui.h index 0a961e0..924f307 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1659,6 +1659,7 @@ RAYGUIDEF int GuiDropdownBox(Rectangle bounds, const char **text, int count, int { if (CheckCollisionPointRec(mousePoint, (Rectangle){ bounds.x, bounds.y + i*bounds.height, bounds.width, bounds.height })) active = i - 1; } + dropOpen = false; } } //--------------------------------------------------------------------