From 3ce10a1e896258a73e30ad7a17b99a82c286f8c3 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Fri, 3 Jun 2011 18:27:37 +0200 Subject: move EncodedCharAdjustCounter() to common.[ch] and rename it to encodedCharAdjustCounter() --- glcdgraphics/bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glcdgraphics/bitmap.c') diff --git a/glcdgraphics/bitmap.c b/glcdgraphics/bitmap.c index 46bcdb1..470b208 100644 --- a/glcdgraphics/bitmap.c +++ b/glcdgraphics/bitmap.c @@ -598,7 +598,7 @@ int cBitmap::DrawText(int x, int y, int xmax, const std::string & text, const cF { while (skipPixels > font->SpaceBetween() + font->Width(text.substr(start), 1 /*text[start]*/)) { - cFont::EncodedCharAdjustCounter(font->IsUTF8(), text, c, start); + encodedCharAdjustCounter(font->IsUTF8(), text, c, start); skipPixels -= font->Width(c/*text[start]*/); skipPixels -= font->SpaceBetween(); start++; @@ -610,7 +610,7 @@ int cBitmap::DrawText(int x, int y, int xmax, const std::string & text, const cF i = start; while ( i < (unsigned int)text.length() ) { - cFont::EncodedCharAdjustCounter(font->IsUTF8(), text, c, i); + encodedCharAdjustCounter(font->IsUTF8(), text, c, i); if (xt > xmax) { -- cgit v1.2.3