summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-05-17 14:09:35 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-05-17 14:09:35 +0000
commit4862fe4451e3cf17f1c0e369991c37150d9ba560 (patch)
treed40a0c8f0236f71adca01f65571d1447cb8655ad
parent3637ccbffcfdd3ca63a82358988867228c72d847 (diff)
downloadrockbox-4862fe4451e3cf17f1c0e369991c37150d9ba560.tar.gz
rockbox-4862fe4451e3cf17f1c0e369991c37150d9ba560.zip
splash.c: correct calculation of y coordinate of splash.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26108 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/splash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/splash.c b/apps/gui/splash.c
index 09d57f5b26..aa03e2e2db 100644
--- a/apps/gui/splash.c
+++ b/apps/gui/splash.c
@@ -137,7 +137,7 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap)
137 137
138#ifdef HAVE_LCD_BITMAP 138#ifdef HAVE_LCD_BITMAP
139 139
140 vp.y = (vp.height - vp.y - y) / 2 - RECT_SPACING; /* height => y start position */ 140 vp.y += (vp.height - y) / 2 - RECT_SPACING; /* height => y start position */
141 vp.x += (vp.width - maxw) / 2 - RECT_SPACING; 141 vp.x += (vp.width - maxw) / 2 - RECT_SPACING;
142 width = maxw + 2*RECT_SPACING; 142 width = maxw + 2*RECT_SPACING;
143 height = y + 2*RECT_SPACING; 143 height = y + 2*RECT_SPACING;