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:
Thomas Martitz 2009-10-19 22:49:41 +00:00
parent 0abc34b342
commit 137d27af42

View file

@ -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)
{
x = ((current_vp->width - w)/ 2) + x;
if (x < 0)
x = 0;
}
else
{