diff options
Diffstat (limited to 'media-gfx/splash-themes-livecd/files/splash-themes-livecd-2007.0-rounding.patch')
-rw-r--r-- | media-gfx/splash-themes-livecd/files/splash-themes-livecd-2007.0-rounding.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media-gfx/splash-themes-livecd/files/splash-themes-livecd-2007.0-rounding.patch b/media-gfx/splash-themes-livecd/files/splash-themes-livecd-2007.0-rounding.patch new file mode 100644 index 000000000000..9239d37d551e --- /dev/null +++ b/media-gfx/splash-themes-livecd/files/splash-themes-livecd-2007.0-rounding.patch @@ -0,0 +1,12 @@ +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}" |