diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-10-19 22:49:41 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-10-19 22:49:41 +0000 |
commit | 137d27af42d3d8b75eb809190454b598caa750c6 (patch) | |
tree | d831e6cc48aecbb20c96d64d8330cf6f6dd7c647 /firmware | |
parent | 0abc34b3423123ad654f5fd728938da948ec2ee6 (diff) |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index 30c8a396b5..3495e04964 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c @@ -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 { |