Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2021 05:42:02 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0c675cb9c9cb - stable/13 - lualoader: allow brands to specify a shift
Message-ID:  <202109120542.18C5g2LX009315@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c675cb9c9cbe089eb9d881fb01d70bffddd24d6

commit 0c675cb9c9cbe089eb9d881fb01d70bffddd24d6
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-09-08 21:33:28 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-09-12 05:34:28 +0000

    lualoader: allow brands to specify a shift
    
    Some brands will want to specify a shift to make sure they're properly
    centered; let it happen.
    
    (cherry picked from commit e19d9a9b6e44e15087a140a26ab3e24b07f6ba56)
---
 stand/lua/drawer.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua
index b592b416033d..6f6e2fe1b3e8 100644
--- a/stand/lua/drawer.lua
+++ b/stand/lua/drawer.lua
@@ -308,6 +308,11 @@ local function drawbrand()
 
 	x = x + shift.x
 	y = y + shift.y
+	if branddef.shift ~= nil then
+		x = x +	branddef.shift.x
+		y = y + branddef.shift.y
+	end
+
 	if core.isFramebufferConsole() and
 	    loader.term_putimage ~= nil and
 	    branddef.image ~= nil then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109120542.18C5g2LX009315>