You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/splash-themes-livecd/files/splash-themes-livecd-2007.0...

13 lines
756 B

diff -Naurp gentoo-livecd-2007.0-orig/scripts/rc_init-pre gentoo-livecd-2007.0/scripts/rc_init-pre
--- gentoo-livecd-2007.0-orig/scripts/rc_init-pre 2007-09-08 11:43:00.000000000 +0200
+++ gentoo-livecd-2007.0/scripts/rc_init-pre 2007-09-08 11:43:17.000000000 +0200
@@ -89,7 +89,7 @@ fi
P_RESOLUTION="$($C_FBRES)"
if [ -n "${P_RESOLUTION}" -a -n "${P_ICONW}" -a -n "${P_ICONH}" ]; then
P_ICONX="$(($((${P_RESOLUTION%x*} / 2)) - $((${P_ICONW} / 2))))"
- P_ICONY="$(echo "" | awk "{f=${P_RESOLUTION#*x};ih=${P_ICONH};print ((f/2)+((f/2)-(ih/3))/2)}")"
+ P_ICONY="$(echo "" | awk "{f=${P_RESOLUTION#*x};ih=${P_ICONH};print int((f/2)+((f/2)-(ih/3))/2)}")"
else
log err "failed to configure resolution and icon positioning"
exit "${E_RESOLUTION}"