summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-06-05 23:55:25 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-06-05 23:55:25 +0200
commite53f669ff46b7ecbae19ae07beaef98ee384192e (patch)
tree61883299a74183771e35cd037e4b2e406739c408
parent241d65a6a5ab4553e5ad30b8cf86cc2139630787 (diff)
downloadgraphlcd-base-e53f669ff46b7ecbae19ae07beaef98ee384192e.tar.gz
graphlcd-base-e53f669ff46b7ecbae19ae07beaef98ee384192e.tar.bz2
fix scroll text when scrolling on right object border
-rw-r--r--glcdgraphics/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcdgraphics/bitmap.c b/glcdgraphics/bitmap.c
index 464f189..0c4fd5d 100644
--- a/glcdgraphics/bitmap.c
+++ b/glcdgraphics/bitmap.c
@@ -680,7 +680,7 @@ int cBitmap::DrawCharacter(int x, int y, int xmax, uint32_t c, const cFont * fon
if ( x + drawWidth-1 > xmax)
drawWidth = xmax - x + 1;
- drawBitmap = new cBitmap(charBitmap->Width()-skipPixels,charBitmap->Height());
+ drawBitmap = new cBitmap(drawWidth /*charBitmap->Width()-skipPixels*/,charBitmap->Height());
drawBitmap->Clear(bgcolor);
if (drawBitmap) {