aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source
diff options
context:
space:
mode:
authorJohn Hansen2011-04-25 02:21:02 +0000
committerNicolas Schodet2011-07-04 00:37:04 +0200
commitf6a7a27faf5edb01a18d27e2f369e939cf99e521 (patch)
tree45842d4106a9d358ce0152e714fff0517bfd5357 /AT91SAM7S256/Source
parentfc1e658f15bbb8d4497d189e79b43fab4b964839 (diff)
Fixed text clipping defect
git-svn-id: https://mindboards.svn.sourceforge.net/svnroot/mindboards/lms_nbcnxc/branches/version_131@38 c9361245-7fe8-9947-84e8-057757c4e366
Diffstat (limited to 'AT91SAM7S256/Source')
-rw-r--r--AT91SAM7S256/Source/c_cmd_drawing.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/AT91SAM7S256/Source/c_cmd_drawing.inc b/AT91SAM7S256/Source/c_cmd_drawing.inc
index 41e405a..5592180 100644
--- a/AT91SAM7S256/Source/c_cmd_drawing.inc
+++ b/AT91SAM7S256/Source/c_cmd_drawing.inc
@@ -1658,7 +1658,7 @@ void cCmdDrawString(UBYTE *pString, ULONG X, ULONG Y, UBYTE InvertMode, UBYTE Lo
//Calculate X coordinate of the right edge of this character.
//If it will extend past the right edge, clip the string.
X += FontWidth;
- if (X >= DISPLAY_WIDTH)
+ if (X > DISPLAY_WIDTH) // JCH: was >= This clipped text that ended at pixel 99
break;
//If Item is defined by the font, display it. Else, ignore it.