From 896cd643b03f1375aee0ee2765a61179d5d42da3 Mon Sep 17 00:00:00 2001 From: Bertram Date: Wed, 23 Sep 2009 00:43:24 +0200 Subject: Also added setAlpha() to ShopListBox, to avoid glitches with flooritems. --- src/gui/shoplistbox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/shoplistbox.cpp b/src/gui/shoplistbox.cpp index b35c1d80..6581a82d 100644 --- a/src/gui/shoplistbox.cpp +++ b/src/gui/shoplistbox.cpp @@ -25,6 +25,7 @@ #include "configuration.h" #include "graphics.h" +#include "resources/image.h" #include "shopitem.h" #include @@ -105,6 +106,7 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics) Image *icon = mShopItems->at(i)->getImage(); if (icon) { + icon->setAlpha(1.0f); graphics->drawImage(icon, 1, y); } } -- cgit v1.2.3-70-g09d2