summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog1
-rw-r--r--src/gui/listbox.cpp1
-rw-r--r--src/gui/shoplistbox.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b45ff8f7..6cbd1249 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,7 @@
when restoring missing settings.
* src/gui/buy.cpp, src/gui/buy.h, src/gui/sell.cpp, src/gui/sell.h:
Converted to layout handler.
+ * src/gui/shoplistbox.cpp, src/gui/listbox.cpp: Fixed invisible text.
2007-10-20 Guillaume Melquiond <guillaume.melquiond@gmail.com>
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);
}