1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

loader: insert spaces around menu title

Small visual nit, make menu title more clean

(cherry picked from 62ffcaab8f)
This commit is contained in:
Toomas Soome 2021-03-23 07:04:48 +02:00
parent ca20444e2a
commit d019c774e9
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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()