summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-04-29 10:38:03 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-04-29 10:38:03 +0000
commit4c03e9a6f0f40cf8d0ffed0d2f35fafdab143738 (patch)
tree79bd5be463818276a9a99cfac27f680b74abfe7b /apps
parent886ecaa7a48f33a3fb124b53253b3a5602bbc920 (diff)
downloadrockbox-4c03e9a6f0f40cf8d0ffed0d2f35fafdab143738.tar.gz
rockbox-4c03e9a6f0f40cf8d0ffed0d2f35fafdab143738.tar.bz2
rockbox-4c03e9a6f0f40cf8d0ffed0d2f35fafdab143738.zip
fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25756 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/splash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/splash.c b/apps/gui/splash.c
index 958d19a2ff..fc39621885 100644
--- a/apps/gui/splash.c
+++ b/apps/gui/splash.c
@@ -58,9 +58,9 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap)
int x = 0;
int y, i;
int space_w, w, h;
- int width, height;
-#ifdef HAVE_LCD_BITMAP
struct viewport vp;
+#ifdef HAVE_LCD_BITMAP
+ int width, height;
int maxw = 0;
viewport_set_defaults(&vp, screen->screen_type);
@@ -68,6 +68,8 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap)
screen->getstringsize(" ", &space_w, &h);
#else /* HAVE_LCD_CHARCELLS */
+ vp.width = screen->lcdwidth;
+ vp.height = screen->lcdheight;
space_w = h = 1;
screen->double_height (false);