From dd4d44a07d3a63ced0eec51c30b75887792c4a36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Apr 2013 14:57:27 +0300 Subject: some more style and cast fixes. --- src/gui/widgets/avatarlistbox.cpp | 8 ++------ src/gui/widgets/avatarlistbox.h | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 372218fe6..fe46feba2 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -48,8 +48,7 @@ AvatarListBox::AvatarListBox(const Widget2 *const widget, ListBox(widget, model, "avatarlistbox.xml"), mShowGender(config.getBoolValue("showgender")), mShowLevel(config.getBoolValue("showlevel")), - mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0), - mHighlightColor(getThemeColor(Theme::HIGHLIGHT)) + mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0) { instances++; @@ -99,13 +98,10 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) AvatarListModel *const model = static_cast( mListModel); -// Guild *guild = dynamic_cast(model); - updateAlpha(); - Graphics *const graphics = static_cast(gcnGraphics); - mHighlightColor.a = static_cast(mAlpha * 255.0f); +// mHighlightColor.a = static_cast(mAlpha * 255.0f); gcn::Font *const font = getFont(); const int fontHeight = getFont()->getHeight(); diff --git a/src/gui/widgets/avatarlistbox.h b/src/gui/widgets/avatarlistbox.h index 7d283abea..579651d29 100644 --- a/src/gui/widgets/avatarlistbox.h +++ b/src/gui/widgets/avatarlistbox.h @@ -65,7 +65,6 @@ private: bool mShowGender; bool mShowLevel; int mImagePadding; - gcn::Color mHighlightColor; static int instances; static Image *onlineIcon; -- cgit v1.2.3-70-g09d2