From d5171f62dae5026763624cfecec8860c8f0606af Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 16 May 2024 14:15:09 +0300 Subject: [PATCH] microfix --- res/layouts/console.xml.lua | 2 +- src/graphics/ui/elements/TextBox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/layouts/console.xml.lua b/res/layouts/console.xml.lua index 3e5b0f70..bfdd5f3f 100644 --- a/res/layouts/console.xml.lua +++ b/res/layouts/console.xml.lua @@ -1,4 +1,4 @@ -history = session.get_entry("console_history") +history = session.get_entry("commands_history") history_pointer = #history function setup_variables() diff --git a/src/graphics/ui/elements/TextBox.cpp b/src/graphics/ui/elements/TextBox.cpp index fc42c369..a73b148e 100644 --- a/src/graphics/ui/elements/TextBox.cpp +++ b/src/graphics/ui/elements/TextBox.cpp @@ -38,7 +38,7 @@ void TextBox::draw(const DrawContext* pctx, Assets* assets) { static_cast( label->getLinesNumber() * label->getLineInterval() * - font->getLineHeight()) + font->getLineHeight()) + 1 ); if (newy != static_cast(size.y)) { size.y = newy;