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) | |
download | rockbox-137d27af42d3d8b75eb809190454b598caa750c6.tar.gz rockbox-137d27af42d3d8b75eb809190454b598caa750c6.zip |
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) | |||
98 | if (vp_flags & VP_FLAG_ALIGN_CENTER) | 98 | if (vp_flags & VP_FLAG_ALIGN_CENTER) |
99 | { | 99 | { |
100 | x = ((current_vp->width - w)/ 2) + x; | 100 | x = ((current_vp->width - w)/ 2) + x; |
101 | if (x < 0) | ||
102 | x = 0; | ||
101 | } | 103 | } |
102 | else | 104 | else |
103 | { | 105 | { |