From bbebd24b5561e9cd806dca8ccd6fe4b4dcb1301d Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 28 Mar 2009 14:30:45 -0600 Subject: Another slight adjustment to speech bubble dialog positioning to make them look a little better aesthetically. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ira Rice Signed-off-by: Bjørn Lindeijer --- src/gui/speechbubble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp index 615bbe77..c74ae4a3 100644 --- a/src/gui/speechbubble.cpp +++ b/src/gui/speechbubble.cpp @@ -80,7 +80,7 @@ void SpeechBubble::setText(std::string text, bool showName) const int fontHeight = getFont()->getHeight(); const int nameHeight = showName ? mCaption->getHeight() + - getPadding() : 0; + (getPadding() / 2) : 0; const int numRows = mSpeechBox->getNumberOfRows(); const int height = (numRows * fontHeight) + nameHeight + getPadding(); -- cgit v1.2.3-70-g09d2