summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle')
-rw-r--r--src/particle/textparticle.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/particle/textparticle.cpp b/src/particle/textparticle.cpp
index ab07c33a5..aa506e75f 100644
--- a/src/particle/textparticle.cpp
+++ b/src/particle/textparticle.cpp
@@ -77,10 +77,19 @@ void TextParticle::draw(Graphics *const graphics,
graphics->setColor(color);
if (mOutline)
{
- graphics->setColor2(theme->getColor(
- Theme::OUTLINE, static_cast<int>(alpha)));
+ const Color &color2 = theme->getColor(Theme::OUTLINE,
+ static_cast<int>(alpha));
+ mTextFont->drawString(graphics,
+ color, color2,
+ mText,
+ screenX - mTextWidth, screenY);
+ }
+ else
+ {
+ mTextFont->drawString(graphics,
+ color, color,
+ mText, screenX - mTextWidth, screenY);
}
- mTextFont->drawString(graphics, mText, screenX - mTextWidth, screenY);
BLOCK_END("TextParticle::draw")
return;
}