mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-27 17:39:16 -05:00
Forgot to include dropOpen reset
Reset dropOpen when dropdown closed. Forgot to add in previous commit
This commit is contained in:
@ -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;
|
if (CheckCollisionPointRec(mousePoint, (Rectangle){ bounds.x, bounds.y + i*bounds.height, bounds.width, bounds.height })) active = i - 1;
|
||||||
}
|
}
|
||||||
|
dropOpen = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user