summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-21 13:58:18 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-21 13:58:18 +0000
commitd0877aff895d7984a7eeab010e8fdf4968a26215 (patch)
tree42d3b1fa3bd148c7f882b40cc854041c8396c328 /apps
parent8057d79202e9eb7a122f67128fbce98f37e912d8 (diff)
downloadrockbox-d0877aff895d7984a7eeab010e8fdf4968a26215.zip
rockbox-d0877aff895d7984a7eeab010e8fdf4968a26215.tar.gz
rockbox-d0877aff895d7984a7eeab010e8fdf4968a26215.tar.bz2
rockbox-d0877aff895d7984a7eeab010e8fdf4968a26215.tar.xz
splash(): Avoid negative x coordinates if the text doesn't fit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4914 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c
index be2744f..28d9a48 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -773,8 +773,11 @@ void splash(int ticks, /* how long the splash is displayed */
if(y > (LCD_HEIGHT-h))
/* STOP */
break;
- if(center)
+ if(center) {
x = (LCD_WIDTH-widths[line])/2;
+ if(x < 0)
+ x = 0;
+ }
else
x=0;
}