From ba2fdec93b24232495e211a2251cef849a11dc50 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 19 Oct 2021 14:58:19 +0200 Subject: [PATCH] Update raygui.h --- src/raygui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 68c7523..dfb7792 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1928,7 +1928,7 @@ bool GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMo else GuiDrawText(items[i], GetTextBounds(DEFAULT, itemBounds), GuiGetStyle(DROPDOWNBOX, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(DROPDOWNBOX, TEXT_COLOR_NORMAL)), guiAlpha)); } } - + // Draw arrows (using icon if available) #if defined(RAYGUI_NO_RICONS) GuiDrawText("v", RAYGUI_CLITERAL(Rectangle){ bounds.x + bounds.width - GuiGetStyle(DROPDOWNBOX, ARROW_PADDING), bounds.y + bounds.height/2 - 2, 10, 10 }, @@ -3730,7 +3730,7 @@ static int GetTextWidth(const char *text) { Vector2 size = { 0 }; - if ((text != NULL) && (text[0] != '\0')) + if ((text != NULL) && (text[0] != '\0')) { size = MeasureTextEx(guiFont, text, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); }