From 6f20788ed5c53bfa757db7d0cdbb40f377fcb422 Mon Sep 17 00:00:00 2001 From: Ray San Date: Fri, 9 Mar 2018 13:31:25 +0100 Subject: [PATCH] Corrected issue --- src/raygui.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index e5e7da0..b053d15 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -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 //--------------------------------------------------------------------