lua: fix hintbox/messagebox default width

Origin commit data
------------------
Commit: b0dc739d8d
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-10-16 (Tue, 16 Oct 2018)

Origin message was:
------------------
- lua: fix hintbox/messagebox default width
This commit is contained in:
vanhofen
2018-10-16 23:57:28 +02:00
parent 909bb58948
commit 7f682053d3
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ int CLuaInstHintbox::HintboxNew(lua_State *L)
tableLookup(L, "name", name) || tableLookup(L, "title", name) || tableLookup(L, "caption", name);
tableLookup(L, "text", text);
tableLookup(L, "icon", icon);
lua_Integer width = 450;
lua_Integer width = HINTBOX_MIN_WIDTH;
tableLookup(L, "width", width);
CLuaHintbox **udata = (CLuaHintbox **) lua_newuserdata(L, sizeof(CLuaHintbox *));

View File

@@ -66,7 +66,7 @@ int CLuaInstMessagebox::MessageboxExec(lua_State *L)
tableLookup(L, "name", name) || tableLookup(L, "title", name) || tableLookup(L, "caption", name);
tableLookup(L, "text", text);
tableLookup(L, "icon", icon);
lua_Integer timeout = -1, width = 450, return_default_on_timeout = 0, show_buttons = 0, default_button = 0;
lua_Integer timeout = -1, width = MSGBOX_MIN_WIDTH, return_default_on_timeout = 0, show_buttons = 0, default_button = 0;
tableLookup(L, "timeout", timeout);
tableLookup(L, "width", width);
tableLookup(L, "return_default_on_timeout", return_default_on_timeout);