Corrected issue

This commit is contained in:
Ray San
2018-03-09 13:31:25 +01:00
parent e05c46d34d
commit 6f20788ed5

View File

@ -930,10 +930,8 @@ RAYGUIDEF bool GuiLabelButton(Rectangle bounds, const char *text)
int textWidth = MeasureText(text, style[DEFAULT_TEXT_SIZE]);
int textHeight = style[DEFAULT_TEXT_SIZE];
//if (bounds.width < textWidth) bounds.width = textWidth;
//if (bounds.height < textHeight) bounds.height = textHeight;
bounds.width = textWidth;
bounds.height = textHeight;
if (bounds.width < textWidth) bounds.width = textWidth;
if (bounds.height < textHeight) bounds.height = textHeight;
// Update control
//--------------------------------------------------------------------