From 453b42fb59fccf593f88959a9402b4fa96bf219f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 14 May 2009 00:07:25 +0200 Subject: Don't apply GUI opacity to the selected value of a DropDown --- src/gui/truetypefont.cpp | 8 ++++---- src/gui/widgets/dropdown.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index 62a27651..e07adc9f 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -19,12 +19,12 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include +#include "gui/truetypefont.h" -#include "truetypefont.h" +#include "graphics.h" +#include "resources/image.h" -#include "../graphics.h" -#include "../resources/image.h" +#include #define CACHE_SIZE 256 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); } -- cgit v1.2.3-70-g09d2