summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp
index 63688fa29..cc76790d1 100644
--- a/src/gui/sdlfont.cpp
+++ b/src/gui/sdlfont.cpp
@@ -255,16 +255,6 @@ void SDLFont::drawString(gcn::Graphics *graphics,
if (data.img)
g->drawImage(data.img, x, y);
-
- if (!mCleanTime)
- {
- mCleanTime = cur_time + CLEAN_TIME;
- }
- else if (mCleanTime < cur_time)
- {
- doClean();
- mCleanTime = cur_time + CLEAN_TIME;
- }
}
else if (cache->front().img)
{
@@ -275,6 +265,19 @@ void SDLFont::drawString(gcn::Graphics *graphics,
}
+void SDLFont::slowLogic()
+{
+ if (!mCleanTime)
+ {
+ mCleanTime = cur_time + CLEAN_TIME;
+ }
+ else if (mCleanTime < cur_time)
+ {
+ doClean();
+ mCleanTime = cur_time + CLEAN_TIME;
+ }
+}
+
void SDLFont::createSDLTextChunk(SDLTextChunk *chunk)
{
if (!chunk || chunk->text.empty())