diff options
Diffstat (limited to 'src/gui/textrenderer.h')
-rw-r--r-- | src/gui/textrenderer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/textrenderer.h b/src/gui/textrenderer.h index c8ff5833..ad9fbbad 100644 --- a/src/gui/textrenderer.h +++ b/src/gui/textrenderer.h @@ -42,7 +42,7 @@ class TextRenderer const gcn::Color &color, gcn::Font *font, bool outline = false, - bool shadow = false, int alpha = 255) + bool shadow = false) { graphics->setFont(font); @@ -50,7 +50,7 @@ class TextRenderer if (shadow) { graphics->setColor(guiPalette->getColor(Palette::SHADOW, - alpha / 2)); + color.a / 2)); if (outline) { graphics->drawText(text, x + 2, y + 2, align); @@ -70,7 +70,7 @@ class TextRenderer graphics->drawText(text, x + 2, y + 1, align);*/ // Text outline - graphics->setColor(guiPalette->getColor(Palette::OUTLINE, alpha)); + graphics->setColor(guiPalette->getColor(Palette::OUTLINE, color.a)); graphics->drawText(text, x + 1, y, align); graphics->drawText(text, x - 1, y, align); graphics->drawText(text, x, y + 1, align); |