summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorJonathan Bauer2020-08-06 17:05:01 +0200
committerJonathan Bauer2020-08-06 17:05:01 +0200
commit2d084c4826bb3decd03521b9d7f405812fa8c0c7 (patch)
treead60e651e0e2267f226441598e584037ca7f802d /core/rootfs
parent[kexec-reboot] Add splash screen (diff)
downloadmltk-2d084c4826bb3decd03521b9d7f405812fa8c0c7.tar.gz
mltk-2d084c4826bb3decd03521b9d7f405812fa8c0c7.tar.xz
mltk-2d084c4826bb3decd03521b9d7f405812fa8c0c7.zip
[rootfs-stage31] fix math
Diffstat (limited to 'core/rootfs')
-rwxr-xr-xcore/rootfs/rootfs-stage31/data/init4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rootfs/rootfs-stage31/data/init b/core/rootfs/rootfs-stage31/data/init
index 00a88667..706482e5 100755
--- a/core/rootfs/rootfs-stage31/data/init
+++ b/core/rootfs/rootfs-stage31/data/init
@@ -120,8 +120,8 @@ if [ "$SPLASH" -eq 1 ]; then
ppm_width="${ppm_size%% *}"
ppm_height="${ppm_size#* }"
ppm_height="${ppm_height%% *}" # make sure nothing weird is trailing
- img_top="$(( ( screen_width - ppm_width ) / 2 ))"
- img_left="$(( ( screen_height - ppm_height ) / 2 ))"
+ img_left="$(( ( screen_width - ppm_width ) / 2 ))"
+ img_top="$(( ( screen_height - ppm_height ) / 2 ))"
# just checking if nothing too weird is set
if [ -n "$img_left" ] && [ -n "$img_top" ] \
&& [ "$img_left" -ge 0 ] && [ "$img_left" -lt 8096 ] \