From 8f1cafc46f829afc751690581d9e7d2fd1b9b08a Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 25 Aug 2022 22:15:14 +0200 Subject: [PATCH] - lua_cc_text: fix CCTextNew default values Signed-off-by: Thilo Graf --- src/gui/lua/lua_cc_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/lua/lua_cc_text.cpp b/src/gui/lua/lua_cc_text.cpp index fa8349ff7..fa108281b 100644 --- a/src/gui/lua/lua_cc_text.cpp +++ b/src/gui/lua/lua_cc_text.cpp @@ -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;