diff options
| author | jussi | 2024-10-25 21:19:42 +0300 |
|---|---|---|
| committer | jussi | 2024-10-25 21:19:42 +0300 |
| commit | cddfc09ccc286726736fa436a10919021a177b69 (patch) | |
| tree | ac99e0a221807ee4d1906124f6b1218022d6011f /include | |
| parent | ab995f345387b306735ecfbda84dbc019f1053bb (diff) | |
| download | reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.tar.gz reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.tar.bz2 reilua-enhanced-cddfc09ccc286726736fa436a10919021a177b69.zip | |
glDepthRange and glPolygonOffset.
Diffstat (limited to 'include')
| -rw-r--r-- | include/lgl.h | 2 | ||||
| -rw-r--r-- | include/raygui.h | 4 |
2 files changed, 4 insertions, 2 deletions
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)); |
