diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-06-03 18:27:37 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-06-03 18:27:37 +0200 |
commit | 3ce10a1e896258a73e30ad7a17b99a82c286f8c3 (patch) | |
tree | b44c8eabf7cbd59f5d1667602f1c9f5e47ff67dc /glcdgraphics/bitmap.c | |
parent | 90c80f6f57e45780d64c63908ca7813290bdd9ad (diff) | |
download | graphlcd-base-3ce10a1e896258a73e30ad7a17b99a82c286f8c3.tar.gz graphlcd-base-3ce10a1e896258a73e30ad7a17b99a82c286f8c3.tar.bz2 |
move EncodedCharAdjustCounter() to common.[ch] and rename it to encodedCharAdjustCounter()
Diffstat (limited to 'glcdgraphics/bitmap.c')
-rw-r--r-- | glcdgraphics/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |