diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-09 14:57:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-09 15:59:33 +0300 |
commit | dd4d44a07d3a63ced0eec51c30b75887792c4a36 (patch) | |
tree | 26f3da1fd25d91eb8483dc1b819a1d3a3552e6af /src/gui/widgets/avatarlistbox.cpp | |
parent | 099c67f93cf49cda90be55606e1b744c47624b92 (diff) | |
download | mv-dd4d44a07d3a63ced0eec51c30b75887792c4a36.tar.gz mv-dd4d44a07d3a63ced0eec51c30b75887792c4a36.tar.bz2 mv-dd4d44a07d3a63ced0eec51c30b75887792c4a36.tar.xz mv-dd4d44a07d3a63ced0eec51c30b75887792c4a36.zip |
some more style and cast fixes.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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<AvatarListModel *const>( mListModel); -// Guild *guild = dynamic_cast<Guild*>(model); - updateAlpha(); - Graphics *const graphics = static_cast<Graphics *const>(gcnGraphics); - mHighlightColor.a = static_cast<int>(mAlpha * 255.0f); +// mHighlightColor.a = static_cast<int>(mAlpha * 255.0f); gcn::Font *const font = getFont(); const int fontHeight = getFont()->getHeight(); |