From e9539e9373947b7424df8bbb34d8ae30e49a591f Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 13 Jun 2024 14:52:56 +0300 Subject: DrawTextBoxed uses lineSpacing. GetTextLineSpacing. --- include/state.h | 1 + include/text.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/state.h b/include/state.h index 016e1bc..92ed132 100644 --- a/include/state.h +++ b/include/state.h @@ -9,6 +9,7 @@ typedef struct { bool hasWindow; bool run; bool gcUnload; + int lineSpacing; /* We need to store copy here since raylib has it in static. */ lua_State* luaState; Vector2 resolution; int logLevelInvalid; diff --git a/include/text.h b/include/text.h index d936ec6..4f76d71 100644 --- a/include/text.h +++ b/include/text.h @@ -24,6 +24,7 @@ int ltextDrawTextBoxed( lua_State* L ); int ltextDrawTextBoxedTinted( lua_State* L ); /* Text font info functions. */ int ltextSetTextLineSpacing( lua_State* L ); +int ltextGetTextLineSpacing( lua_State* L ); int ltextMeasureText( lua_State* L ); int ltextMeasureTextEx( lua_State* L ); int ltextGetGlyphIndex( lua_State* L ); -- cgit v1.2.3