From 74e97d9d2a90b8eea3d25a9eafc055660b1ec0a2 Mon Sep 17 00:00:00 2001 From: Brock <58987761+13r0ck@users.noreply.github.com> Date: Fri, 5 Nov 2021 14:53:29 -0600 Subject: [PATCH] fix: center plymouth when display resolutions != The current scaling can be a bit strange with this PR. I will make a PR after this one that should fix plymouth scaling with multiple monitors of differing resolutions. --- usr/share/plymouth/themes/pop-basic/pop-basic.script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/share/plymouth/themes/pop-basic/pop-basic.script b/usr/share/plymouth/themes/pop-basic/pop-basic.script index 54174b4..3060895 100644 --- a/usr/share/plymouth/themes/pop-basic/pop-basic.script +++ b/usr/share/plymouth/themes/pop-basic/pop-basic.script @@ -17,8 +17,8 @@ fun scale (input) { column_padding = scale (16); row_padding = scale (32); -xcenter = Window.GetX() + Window.GetWidth() / 2; -ycenter = Window.GetY() + Window.GetHeight() / 2; +xcenter = Window.GetX() + Window.GetWidth(0) / 2; +ycenter = Window.GetY() + Window.GetHeight(0) / 2; logo.image = Image ("logo.png").Scale (scale (logo_size), scale (logo_size)); logo.sprite = Sprite (logo.image);