summaryrefslogtreecommitdiff
path: root/src/gui/truetypefont.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 21:55:32 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 21:55:32 +0100
commit08c9cde4726f94698ea938d464cd1de95b7be587 (patch)
treef75128313418756395683398342cf808387ed390 /src/gui/truetypefont.cpp
parenta6623430aa11b02f93761d27c25db9bb4157ec6f (diff)
downloadmana-08c9cde4726f94698ea938d464cd1de95b7be587.tar.gz
mana-08c9cde4726f94698ea938d464cd1de95b7be587.tar.bz2
mana-08c9cde4726f94698ea938d464cd1de95b7be587.tar.xz
mana-08c9cde4726f94698ea938d464cd1de95b7be587.zip
Fixes some variable names to conform to naming convention
Please do remember that member variables are prefixes with 'm', so that they are easily distinguishable.
Diffstat (limited to 'src/gui/truetypefont.cpp')
-rw-r--r--src/gui/truetypefont.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp
index 8481d80d..7c72e2f5 100644
--- a/src/gui/truetypefont.cpp
+++ b/src/gui/truetypefont.cpp
@@ -131,12 +131,12 @@ void TrueTypeFont::drawString(gcn::Graphics *graphics,
bool found = false;
- for (CacheIterator i = cache.begin(); i != cache.end(); i++)
+ for (CacheIterator i = mCache.begin(); i != mCache.end(); ++i)
{
if (chunk == (*i))
{
// Raise priority: move it to front
- cache.splice(cache.begin(), cache, i);
+ mCache.splice(mCache.begin(), mCache, i);
found = true;
break;
}
@@ -145,16 +145,16 @@ void TrueTypeFont::drawString(gcn::Graphics *graphics,
// Surface not found
if (!found)
{
- if (cache.size() >= CACHE_SIZE)
+ if (mCache.size() >= CACHE_SIZE)
{
- cache.pop_back();
+ mCache.pop_back();
}
- cache.push_front(chunk);
- cache.front().generate(mFont);
+ mCache.push_front(chunk);
+ mCache.front().generate(mFont);
}
- cache.front().img->setAlpha(alpha);
- g->drawImage(cache.front().img, x, y);
+ mCache.front().img->setAlpha(alpha);
+ g->drawImage(mCache.front().img, x, y);
}
int TrueTypeFont::getWidth(const std::string &text) const