summaryrefslogtreecommitdiff
path: root/include/raygui.h
diff options
context:
space:
mode:
authorjussi2024-10-25 21:19:42 +0300
committerjussi2024-10-25 21:19:42 +0300
commitcddfc09ccc286726736fa436a10919021a177b69 (patch)
treeac99e0a221807ee4d1906124f6b1218022d6011f /include/raygui.h
parentab995f345387b306735ecfbda84dbc019f1053bb (diff)
downloadreilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.tar.gz
reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.tar.bz2
reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.zip
glDepthRange and glPolygonOffset.
Diffstat (limited to 'include/raygui.h')
-rw-r--r--include/raygui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/raygui.h b/include/raygui.h
index e4d50b1..9348db2 100644
--- a/include/raygui.h
+++ b/include/raygui.h
@@ -2731,7 +2731,7 @@ int GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode)
{
GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_DISABLED)));
}
- else GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), BLANK);
+ else GuiDrawRectangle(bounds, GuiGetStyle(TEXTBOX, BORDER_WIDTH), GetColor(GuiGetStyle(TEXTBOX, BORDER + (state*3))), GetColor(GuiGetStyle(TEXTBOX, BASE_COLOR_NORMAL)));
// Draw text considering index offset if required
// NOTE: Text index offset depends on cursor position
@@ -2956,7 +2956,7 @@ int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, in
// Draw control
//--------------------------------------------------------------------
- Color baseColor = BLANK;
+ Color baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_NORMAL));
if (state == STATE_PRESSED) baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_PRESSED));
else if (state == STATE_DISABLED) baseColor = GetColor(GuiGetStyle(VALUEBOX, BASE_COLOR_DISABLED));