summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-01 15:32:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-01 15:52:15 +0300
commit819d8644a8d905635dd69da5aa2a3a54a9bc9e8d (patch)
tree20735a4df208cbbe56ac2ff273342b5a3f38afd4 /src
parent23b68bc0d3470faffa0bb122cd1c203b24568c87 (diff)
downloadplus-819d8644a8d905635dd69da5aa2a3a54a9bc9e8d.tar.gz
plus-819d8644a8d905635dd69da5aa2a3a54a9bc9e8d.tar.bz2
plus-819d8644a8d905635dd69da5aa2a3a54a9bc9e8d.tar.xz
plus-819d8644a8d905635dd69da5aa2a3a54a9bc9e8d.zip
Rearrange text in server dialog servers list.
Diffstat (limited to 'src')
-rw-r--r--src/gui/serverdialog.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index cf2c3f0f9..216efc625 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -183,20 +183,24 @@ public:
graphics->setColor(mTextColor);
int top;
+ int x = 2;
if (!info.name.empty())
{
graphics->setFont(boldFont);
+ x += boldFont->getWidth(info.name) + 15;
graphics->drawText(info.name, 2, y);
- top = y + height / 2;
+ top = y + boldFont->getHeight() + 2;
}
else
{
- top = y + height / 4;
+ top = y + height / 4 + 2;
}
graphics->setFont(getFont());
+ if (!info.description.empty())
+ graphics->drawText(info.description, x, y);
graphics->drawText(model->getElementAt(i), 2, top);
if (info.version.first > 0)
@@ -211,7 +215,7 @@ public:
unsigned int getRowHeight() const
{
- return 2 * getFont()->getHeight();
+ return 2 * getFont()->getHeight() + 5;
}
private:
gcn::Color mHighlightColor;