Corrected issue with DEFAULT_TEXT_SIZE

This commit is contained in:
Ray
2018-11-20 23:27:26 +01:00
parent f167ca0370
commit 13b78e8149

View File

@ -1144,7 +1144,7 @@ RAYGUIDEF int GuiComboBox(Rectangle bounds, const char **text, int count, int ac
else if (active > count - 1) active = count - 1;
int textWidth = GuiTextWidth(text[active]);
int textHeight = GuiGetStyle(COMBOBOX, TEXT_SIZE);
int textHeight = GuiGetStyle(DEFAULT, TEXT_SIZE);
if (bounds.width < textWidth) bounds.width = textWidth;
if (bounds.height < textHeight) bounds.height = textHeight;