Skip to content

Commit

Permalink
fix: center plymouth when display resolutions !=
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
13r0ck authored and jackpot51 committed Nov 8, 2021
1 parent 000f1ca commit 74e97d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/share/plymouth/themes/pop-basic/pop-basic.script
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74e97d9

Please sign in to comment.