From cddfc09ccc286726736fa436a10919021a177b69 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 25 Oct 2024 21:19:42 +0300 Subject: glDepthRange and glPolygonOffset. --- include/lgl.h | 2 ++ include/raygui.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/lgl.h b/include/lgl.h index 459ed69..530585b 100644 --- a/include/lgl.h +++ b/include/lgl.h @@ -5,8 +5,10 @@ int lglClear( lua_State* L ); /* Frame Buffers. */ int lglBlitFramebuffer( lua_State* L ); /* State Management. */ +int lglDepthRange( lua_State* L ); int lglEnable( lua_State* L ); int lglDisable( lua_State* L ); +int lglPolygonOffset( lua_State* L ); int lglStencilFunc( lua_State* L ); int lglStencilFuncSeparate( lua_State* L ); int lglStencilMask( lua_State* L ); 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)); -- cgit v1.2.3