aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-08-19 18:12:11 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-08-19 18:12:11 +0000
commit6112ee09cb8dd2f6734fb3d73c1ccb13d4cef4d5 (patch)
treeef1a9177b12418041b342e7aa2ce9d109f9dd35e /stand
parent2734fedc4e55ff6000174dd324f874e9b74cb2be (diff)
downloadsrc-6112ee09cb8dd2f6734fb3d73c1ccb13d4cef4d5.tar.gz
src-6112ee09cb8dd2f6734fb3d73c1ccb13d4cef4d5.zip
lualoader: Stop exporting drawer.draw
drawer.draw is the back-end for drawlogo and drawbrand and should not be used directly.
Notes
Notes: svn path=/head/; revision=338063
Diffstat (limited to 'stand')
-rw-r--r--stand/lua/drawer.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua
index 5f0b020cef11..2d24a95393a6 100644
--- a/stand/lua/drawer.lua
+++ b/stand/lua/drawer.lua
@@ -83,6 +83,13 @@ local function getLogodef(logo)
return logodef
end
+local function draw(x, y, logo)
+ for i = 1, #logo do
+ screen.setcursor(x, y + i - 1)
+ printc(logo[i])
+ end
+end
+
fbsd_brand = {
" ______ ____ _____ _____ ",
" | ____| | _ \\ / ____| __ \\ ",
@@ -320,13 +327,6 @@ function drawer.drawbox()
printc(menu_header)
end
-function drawer.draw(x, y, logo)
- for i = 1, #logo do
- screen.setcursor(x, y + i - 1)
- printc(logo[i])
- end
-end
-
function drawer.drawbrand()
local x = tonumber(loader.getenv("loader_brand_x")) or
drawer.brand_position.x
@@ -343,7 +343,7 @@ function drawer.drawbrand()
x = x + drawer.shift.x
y = y + drawer.shift.y
- drawer.draw(x, y, graphic)
+ draw(x, y, graphic)
end
function drawer.drawlogo()
@@ -381,7 +381,7 @@ function drawer.drawlogo()
y = y + logodef.shift.y
end
- drawer.draw(x, y, logodef.graphic)
+ draw(x, y, logodef.graphic)
end
return drawer