splash.c: correct calculation of y coordinate of splash.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26108 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-05-17 14:09:35 +00:00
parent 3637ccbffc
commit 4862fe4451

View file

@ -137,7 +137,7 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap)
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
vp.y = (vp.height - vp.y - y) / 2 - RECT_SPACING; /* height => y start position */ vp.y += (vp.height - y) / 2 - RECT_SPACING; /* height => y start position */
vp.x += (vp.width - maxw) / 2 - RECT_SPACING; vp.x += (vp.width - maxw) / 2 - RECT_SPACING;
width = maxw + 2*RECT_SPACING; width = maxw + 2*RECT_SPACING;
height = y + 2*RECT_SPACING; height = y + 2*RECT_SPACING;