summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-09 14:57:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-09 15:59:33 +0300
commitdd4d44a07d3a63ced0eec51c30b75887792c4a36 (patch)
tree26f3da1fd25d91eb8483dc1b819a1d3a3552e6af /src/gui/widgets
parent099c67f93cf49cda90be55606e1b744c47624b92 (diff)
downloadmanaverse-dd4d44a07d3a63ced0eec51c30b75887792c4a36.tar.gz
manaverse-dd4d44a07d3a63ced0eec51c30b75887792c4a36.tar.bz2
manaverse-dd4d44a07d3a63ced0eec51c30b75887792c4a36.tar.xz
manaverse-dd4d44a07d3a63ced0eec51c30b75887792c4a36.zip
some more style and cast fixes.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp8
-rw-r--r--src/gui/widgets/avatarlistbox.h1
2 files changed, 2 insertions, 7 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();
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;