From 137d27af42d3d8b75eb809190454b598caa750c6 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 19 Oct 2009 22:49:41 +0000 Subject: 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 --- firmware/drivers/lcd-bitmap-common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware') 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 { -- cgit v1.2.3