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:
parent
8057d79202
commit
d0877aff89
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue