1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Linus Nielsen Feltzing 2004-07-21 13:58:18 +00:00
parent 8057d79202
commit d0877aff89

View file

@ -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;
}