From e53f669ff46b7ecbae19ae07beaef98ee384192e Mon Sep 17 00:00:00 2001 From: mrwastl Date: Sun, 5 Jun 2011 23:55:25 +0200 Subject: fix scroll text when scrolling on right object border --- glcdgraphics/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3