aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/common.lua
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2017-09-11 16:25:20 +0200
committersfan5 <sfan5@live.de>2017-09-12 19:33:00 +0200
commit6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974 (patch)
tree3694bada19cc38cc32a5616f7db4e9b0207b3a53 /builtin/mainmenu/common.lua
parent17fd5fe9358615633a04d7a3941b444a8ce5f199 (diff)
downloadminetest-6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974.tar.gz
minetest-6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974.tar.bz2
minetest-6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974.zip
Fix core.wrap_text and make its behaviour consistent with the docs
Code based on initial implementation by @dsohler.
Diffstat (limited to 'builtin/mainmenu/common.lua')
-rw-r--r--builtin/mainmenu/common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua
index fa7ae583b..7eb941775 100644
--- a/builtin/mainmenu/common.lua
+++ b/builtin/mainmenu/common.lua
@@ -250,7 +250,7 @@ end
--------------------------------------------------------------------------------
function text2textlist(xpos, ypos, width, height, tl_name, textlen, text, transparency)
- local textlines = core.wrap_text(text, textlen)
+ local textlines = core.wrap_text(text, textlen, true)
local retval = "textlist[" .. xpos .. "," .. ypos .. ";" .. width ..
"," .. height .. ";" .. tl_name .. ";"