summaryrefslogtreecommitdiff
path: root/src/gui/speechbubble.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-04-17 10:50:34 -0600
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-20 20:37:27 +0200
commit1658af139054adcc79f5571df14a3f60f26e2fa8 (patch)
tree39ac237369e0252d4ab8483879be3ff341ddb9cd /src/gui/speechbubble.cpp
parentb926bec4ff23e43729e88ea36c3cba9509b66f7c (diff)
downloadmana-client-1658af139054adcc79f5571df14a3f60f26e2fa8.tar.gz
mana-client-1658af139054adcc79f5571df14a3f60f26e2fa8.tar.bz2
mana-client-1658af139054adcc79f5571df14a3f60f26e2fa8.tar.xz
mana-client-1658af139054adcc79f5571df14a3f60f26e2fa8.zip
Fixed speech bubbles not respecting the set palette text color.
Signed-off-by: Ira Rice <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r--src/gui/speechbubble.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index e95e83ca..0cfa543c 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -66,7 +66,7 @@ void SpeechBubble::setText(const std::string &text, bool showName)
if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth()))
return;
- graphics->setColor(guiPalette->getColor(Palette::TEXT));
+ mSpeechBox->setTextColor(&guiPalette->getColor(Palette::TEXT));
int width = mCaption->getWidth() + 2 * getPadding();
const int speechWidth = mSpeechBox->getMinWidth() + 2 * getPadding();