From f6a7a27faf5edb01a18d27e2f369e939cf99e521 Mon Sep 17 00:00:00 2001 From: John Hansen Date: Mon, 25 Apr 2011 02:21:02 +0000 Subject: 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 --- AT91SAM7S256/Source/c_cmd_drawing.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AT91SAM7S256/Source/c_cmd_drawing.inc') 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. -- cgit v1.2.3