From 256705ac9eee8990bd92f60c8e2550954c9e5983 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 21 Oct 2007 20:09:08 +0000 Subject: Fixed invisible text in dropboxes and shopboxes. --- ChangeLog | 1 + src/gui/listbox.cpp | 1 + src/gui/shoplistbox.cpp | 1 + 3 files changed, 3 insertions(+) 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 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); } -- cgit v1.2.3-70-g09d2