summaryrefslogtreecommitdiff
path: root/src/gui/shoplistbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shoplistbox.cpp')
-rw-r--r--src/gui/shoplistbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shoplistbox.cpp b/src/gui/shoplistbox.cpp
index 4f9f9024..6d3d9464 100644
--- a/src/gui/shoplistbox.cpp
+++ b/src/gui/shoplistbox.cpp
@@ -68,7 +68,7 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics)
const int red = (textColor->getColor('H', valid) >> 16) & 0xFF;
const int green = (textColor->getColor('H', valid) >> 8) & 0xFF;
const int blue = textColor->getColor('H', valid) & 0xFF;
- const int alpha = mAlpha * 255;
+ const int alpha = (int)(mAlpha * 255.0f);
Graphics *graphics = static_cast<Graphics*>(gcnGraphics);