summaryrefslogtreecommitdiff
path: root/glcdgraphics/bitmap.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-06-03 18:27:37 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-06-03 18:27:37 +0200
commit3ce10a1e896258a73e30ad7a17b99a82c286f8c3 (patch)
treeb44c8eabf7cbd59f5d1667602f1c9f5e47ff67dc /glcdgraphics/bitmap.c
parent90c80f6f57e45780d64c63908ca7813290bdd9ad (diff)
downloadgraphlcd-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.c4
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)
{