summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
authorsniper <sniper@livecd.janhome.net>2009-03-11 15:35:54 +0100
committerIra Rice <irarice@gmail.com>2009-03-12 21:25:27 -0600
commit7d20381b7b9abdf0934ee0fbbb196c788ea93a0d (patch)
tree72e0eef30733d2928d9c0cf41090d3ea10a82e4f /src/text.cpp
parent393c1085ed1cb24092778594d2945a39428e41ad (diff)
downloadmana-7d20381b7b9abdf0934ee0fbbb196c788ea93a0d.tar.gz
mana-7d20381b7b9abdf0934ee0fbbb196c788ea93a0d.tar.bz2
mana-7d20381b7b9abdf0934ee0fbbb196c788ea93a0d.tar.xz
mana-7d20381b7b9abdf0934ee0fbbb196c788ea93a0d.zip
Extending the internal handling of colors
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.cpp b/src/text.cpp
index c167701a..2d96152b 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -80,7 +80,7 @@ void Text::draw(gcn::Graphics *graphics, int xOff, int yOff)
TextRenderer::renderText(graphics, mText,
mX - xOff, mY - yOff, gcn::Graphics::LEFT,
- &mColor, boldFont, !mIsSpeech, true);
+ &mColor, boldFont, true, true);
}
FlashText::FlashText(const std::string &text, int x, int y,