Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 182065
Collapse All | Expand All

(-)gentoo-livecd-2007.0-orig/scripts/rc_init-pre (-1 / +1 lines)
Lines 89-95 fi Link Here
89
P_RESOLUTION="$($C_FBRES)"
89
P_RESOLUTION="$($C_FBRES)"
90
if [ -n "${P_RESOLUTION}" -a -n "${P_ICONW}" -a -n "${P_ICONH}" ]; then
90
if [ -n "${P_RESOLUTION}" -a -n "${P_ICONW}" -a -n "${P_ICONH}" ]; then
91
  P_ICONX="$(($((${P_RESOLUTION%x*} / 2)) - $((${P_ICONW} / 2))))"
91
  P_ICONX="$(($((${P_RESOLUTION%x*} / 2)) - $((${P_ICONW} / 2))))"
92
  P_ICONY="$(echo "" | awk "{f=${P_RESOLUTION#*x};ih=${P_ICONH};print ((f/2)+((f/2)-(ih/3))/2)}")"
92
  P_ICONY="$(echo "" | awk "{f=${P_RESOLUTION#*x};ih=${P_ICONH};print int((f/2)+((f/2)-(ih/3))/2)}")"
93
else
93
else
94
  log err "failed to configure resolution and icon positioning"
94
  log err "failed to configure resolution and icon positioning"
95
  exit "${E_RESOLUTION}"
95
  exit "${E_RESOLUTION}"

Return to bug 182065