git: 62ffcaab8f3c - main - loader: insert spaces around menu title
Toomas Soome
tsoome at FreeBSD.org
Tue Mar 23 07:33:29 UTC 2021
The branch main has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5
commit 62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5
Author: Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-03-23 05:04:48 +0000
Commit: Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-03-23 07:31:36 +0000
loader: insert spaces around menu title
Small visual nit, make menu title more clean
MFC after: 3 days
---
stand/forth/menu.4th | 3 ++-
stand/lua/drawer.lua | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/stand/forth/menu.4th b/stand/forth/menu.4th
index 6b0869cfe3b9..a336b9f9e7aa 100644
--- a/stand/forth/menu.4th
+++ b/stand/forth/menu.4th
@@ -489,7 +489,8 @@ also menu-infrastructure definitions
if ( use default center alignement? )
menuX @ 19 + over 2 / - menuY @ 1-
then
- at-xy type
+ swap 1- swap
+ at-xy space type space
\ If $menu_init is set, evaluate it (allowing for whole menus to be
\ constructed dynamically -- as this function could conceivably set
diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua
index eb9b18117cd3..523735a75d06 100644
--- a/stand/lua/drawer.lua
+++ b/stand/lua/drawer.lua
@@ -285,8 +285,8 @@ local function drawbox()
if menu_header_x == nil then
menu_header_x = x + (w // 2) - (#menu_header // 2)
end
- screen.setcursor(menu_header_x, y)
- printc(menu_header)
+ screen.setcursor(menu_header_x - 1, y)
+ printc(" " .. menu_header .. " ")
end
local function drawbrand()
More information about the dev-commits-src-all
mailing list