summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-14 00:07:25 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-14 00:07:51 +0200
commit453b42fb59fccf593f88959a9402b4fa96bf219f (patch)
tree78afd097eb2d52a0abadb612a7e3dcd6a15feb55 /src/gui/widgets
parent7d8b9e21f6ea005d10827ae32e901d722ec08847 (diff)
downloadmana-client-453b42fb59fccf593f88959a9402b4fa96bf219f.tar.gz
mana-client-453b42fb59fccf593f88959a9402b4fa96bf219f.tar.bz2
mana-client-453b42fb59fccf593f88959a9402b4fa96bf219f.tar.xz
mana-client-453b42fb59fccf593f88959a9402b4fa96bf219f.zip
Don't apply GUI opacity to the selected value of a DropDown
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/dropdown.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 491e6396..e838aab6 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -140,15 +140,15 @@ void DropDown::draw(gcn::Graphics* graphics)
const int alpha = (int) (mAlpha * 255.0f);
gcn::Color faceColor = getBaseColor();
faceColor.a = alpha;
- const gcn::Color* highlightColor = &guiPalette->getColor(Palette::HIGHLIGHT,
- alpha);
+ const gcn::Color *highlightColor =
+ &guiPalette->getColor(Palette::HIGHLIGHT, alpha);
gcn::Color shadowColor = faceColor - 0x303030;
shadowColor.a = alpha;
if (mListBox->getListModel() && mListBox->getSelected() >= 0)
{
graphics->setFont(getFont());
- graphics->setColor(guiPalette->getColor(Palette::TEXT, alpha));
+ graphics->setColor(guiPalette->getColor(Palette::TEXT));
graphics->drawText(mListBox->getListModel()->getElementAt(mListBox->getSelected()), 1, 0);
}