From cdb9fc9bff5af98e198de0648053cb8c01108f73 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 19 Feb 2022 18:29:44 +0100 Subject: [PATCH] REVIEWED: `GuiLabel()` to support custom `GuiSetState()` --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index a80e7b2..7ed09c1 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1602,7 +1602,7 @@ void GuiLabel(Rectangle bounds, const char *text) // Draw control //-------------------------------------------------------------------- - GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(LABEL, (state == GUI_STATE_DISABLED)? TEXT_COLOR_DISABLED : TEXT_COLOR_NORMAL)), guiAlpha)); + GuiDrawText(text, GetTextBounds(LABEL, bounds), GuiGetStyle(LABEL, TEXT_ALIGNMENT), Fade(GetColor(GuiGetStyle(LABEL, TEXT + (state*3))), guiAlpha)); //-------------------------------------------------------------------- }