diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-24 00:43:24 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-24 00:56:21 +0100 |
commit | 4f14fde764bf0624700e88f9fa7d5d84d543aaec (patch) | |
tree | ddae94d2f4ee8b7dd2621bd2fa5ec789d48cf35b /src/gui/textrenderer.h | |
parent | 3570761872e01c61d657af6b761ded2e0da1b23f (diff) | |
download | mana-client-4f14fde764bf0624700e88f9fa7d5d84d543aaec.tar.gz mana-client-4f14fde764bf0624700e88f9fa7d5d84d543aaec.tar.bz2 mana-client-4f14fde764bf0624700e88f9fa7d5d84d543aaec.tar.xz mana-client-4f14fde764bf0624700e88f9fa7d5d84d543aaec.zip |
Alpha property of outline and shadow of rendered text is now taken from the guichan color of the main text instead of an additional argument. Fixed alpha blending of text particles.
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); |