summaryrefslogtreecommitdiff
path: root/src/gui/speechbubble.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-24 21:26:09 -0700
committerIra Rice <irarice@gmail.com>2009-01-24 21:26:09 -0700
commit6f583460139dbf1d0fa11306b684ce9474af6bff (patch)
tree8878debc76b4025e6f3bfc0f2fc79121047db23a /src/gui/speechbubble.cpp
parent30d5f6db2568dc4682cb9ceceb95b2167df8d629 (diff)
downloadmana-6f583460139dbf1d0fa11306b684ce9474af6bff.tar.gz
mana-6f583460139dbf1d0fa11306b684ce9474af6bff.tar.bz2
mana-6f583460139dbf1d0fa11306b684ce9474af6bff.tar.xz
mana-6f583460139dbf1d0fa11306b684ce9474af6bff.zip
Minor tweak to speech bubble sizes so that small bubbles are as small as
they can be and not have text run off. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r--src/gui/speechbubble.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index 97e3fd73..a6bb5563 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -96,12 +96,12 @@ void SpeechBubble::setText(std::string mText)
}
else
{
- int width = mCaption->getWidth() + 8;
+ int width = mCaption->getWidth() + 3;
if (width < getFont()->getWidth(mText))
width = getFont()->getWidth(mText);
setContentSize(width + fontHeight, (fontHeight * 2) + 6);
mSpeechArea->setDimension(gcn::Rectangle(4, fontHeight + 3,
- width + 5, fontHeight));
+ width, fontHeight));
}
}