- lua_cc_text: fix CCTextNew default values

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-08-25 22:15:14 +02:00
committed by Thilo Graf
parent cbd6e4f1f6
commit 8f1cafc46f

View File

@@ -80,7 +80,7 @@ int CLuaInstCCText::CCTextNew(lua_State *L)
lua_assert(lua_istable(L,1));
CLuaCCWindow* parent = NULL;
lua_Integer x=10, y=10, dx=-1, dy=-1;
lua_Integer x=OFFSET_INNER_MID, y=OFFSET_INNER_SMALL, dx=-1, dy=-1;
std::string text = "";
std::string tmpMode = "";
lua_Integer mode = CTextBox::AUTO_WIDTH;