summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 20:09:08 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 20:09:08 +0000
commit256705ac9eee8990bd92f60c8e2550954c9e5983 (patch)
tree9dde87897b4d8c824988d5f0ace3eaa0713aec67 /src/gui
parent53800016443ed50a5b0ea27b65b39730586352d4 (diff)
downloadmana-client-256705ac9eee8990bd92f60c8e2550954c9e5983.tar.gz
mana-client-256705ac9eee8990bd92f60c8e2550954c9e5983.tar.bz2
mana-client-256705ac9eee8990bd92f60c8e2550954c9e5983.tar.xz
mana-client-256705ac9eee8990bd92f60c8e2550954c9e5983.zip
Fixed invisible text in dropboxes and shopboxes.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/listbox.cpp1
-rw-r--r--src/gui/shoplistbox.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/listbox.cpp b/src/gui/listbox.cpp
index a7f6df8d..94e8b38c 100644
--- a/src/gui/listbox.cpp
+++ b/src/gui/listbox.cpp
@@ -52,6 +52,7 @@ void ListBox::draw(gcn::Graphics *graphics)
}
// Draw the list elements
+ graphics->setColor(gcn::Color(0, 0, 0));
for (int i = 0, y = 0;
i < mListModel->getNumberOfElements();
++i, y += fontHeight)
diff --git a/src/gui/shoplistbox.cpp b/src/gui/shoplistbox.cpp
index ae787ab7..e4f6e6f9 100644
--- a/src/gui/shoplistbox.cpp
+++ b/src/gui/shoplistbox.cpp
@@ -95,6 +95,7 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics)
graphics->drawImage(icon, 1, y);
}
}
+ graphics->setColor(gcn::Color(0, 0, 0));
graphics->drawText(mListModel->getElementAt(i), ITEM_ICON_SIZE + 5,
y + (ITEM_ICON_SIZE - getFont()->getHeight()) / 2);
}