summaryrefslogtreecommitdiff
path: root/glcdgraphics/bitmap.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-06-03 01:41:10 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-06-03 01:41:10 +0200
commit90c80f6f57e45780d64c63908ca7813290bdd9ad (patch)
tree24f069226407a0eef15aca9f6a031dc5142c5124 /glcdgraphics/bitmap.c
parent018acd52c0b98027233a6c201222b66996528bb0 (diff)
downloadgraphlcd-base-90c80f6f57e45780d64c63908ca7813290bdd9ad.tar.gz
graphlcd-base-90c80f6f57e45780d64c63908ca7813290bdd9ad.tar.bz2
remove unnecessary code; deactivated syslog-calls in EncodedCharAdjustCounter() (-> avoid flooding of syslog)
Diffstat (limited to 'glcdgraphics/bitmap.c')
-rw-r--r--glcdgraphics/bitmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/glcdgraphics/bitmap.c b/glcdgraphics/bitmap.c
index 9080ec4..46bcdb1 100644
--- a/glcdgraphics/bitmap.c
+++ b/glcdgraphics/bitmap.c
@@ -596,8 +596,6 @@ int cBitmap::DrawText(int x, int y, int xmax, const std::string & text, const cF
start = text.length();
else
{
- unsigned int tmp = start;
- cFont::EncodedCharAdjustCounter(font->IsUTF8(), text, c, tmp);
while (skipPixels > font->SpaceBetween() + font->Width(text.substr(start), 1 /*text[start]*/))
{
cFont::EncodedCharAdjustCounter(font->IsUTF8(), text, c, start);