From: Jose Luis Duran Date: Fri, 23 Apr 2021 16:00:00 -0000 Subject: stand/lua: Fix brand positioning drawer.lua currently ignores the values in `loader_brand_x` and `loader_brand_y`. The menu also displays a leftover "twiddle". This patch fixes the brand positioning and also hides the twiddle. PR: 255202 --- stand/lua/drawer.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua index 6324c22..426b8d0 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -311,7 +311,7 @@ local function drawbrand() if core.isFramebufferConsole() and loader.term_putimage ~= nil and branddef.image ~= nil then - if loader.term_putimage(branddef.image, 1, 1, 0, 7, 0) + if loader.term_putimage(branddef.image, x, y, 0, 7, 0) then return true end @@ -514,6 +514,8 @@ function drawer.drawscreen(menudef) -- it determines the positions of other elements drawitem(drawlogo) drawitem(drawbrand) + -- clear the twiddle + print(" ") drawitem(drawbox) return drawmenu(menudef) end -- 2.31.1