From 2d084c4826bb3decd03521b9d7f405812fa8c0c7 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 6 Aug 2020 17:05:01 +0200 Subject: [rootfs-stage31] fix math --- core/rootfs/rootfs-stage31/data/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/rootfs') 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 ] \ -- cgit v1.2.3-55-g7522