summaryrefslogtreecommitdiff
path: root/src/textparticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/textparticle.cpp')
-rw-r--r--src/textparticle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textparticle.cpp b/src/textparticle.cpp
index eb477217..4f6f1df4 100644
--- a/src/textparticle.cpp
+++ b/src/textparticle.cpp
@@ -21,7 +21,7 @@
#include "textparticle.h"
-#include "textrenderer.h"
+#include "graphics.h"
#include <guichan/color.hpp>
@@ -47,7 +47,7 @@ bool TextParticle::draw(Graphics *graphics, int offsetX, int offsetY) const
gcn::Color color = *mColor;
color.a = getCurrentAlpha() * 255;
- TextRenderer::renderText(graphics, mText,
+ graphics->drawText(mText,
screenX, screenY, gcn::Graphics::CENTER,
color, mTextFont, mOutline, false);