mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix a scrolling bug with centered drawing and too long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23282 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0abc34b342
commit
137d27af42
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@ static void LCDFN(putsxyofs)(int x, int y, int ofs, const unsigned char *str)
|
||||||
if (vp_flags & VP_FLAG_ALIGN_CENTER)
|
if (vp_flags & VP_FLAG_ALIGN_CENTER)
|
||||||
{
|
{
|
||||||
x = ((current_vp->width - w)/ 2) + x;
|
x = ((current_vp->width - w)/ 2) + x;
|
||||||
|
if (x < 0)
|
||||||
|
x = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue