summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-03 17:33:47 -0700
committerIra Rice <irarice@gmail.com>2009-02-03 17:33:47 -0700
commitc6cf9a6a9c03f17362171aeed1a22244d99b7530 (patch)
tree66c6d358a461e119fac31dc9eac8b2b607595a13 /src/gui/progressbar.cpp
parent7d45452187b1c2911b688bbed5fb8981a67b1934 (diff)
downloadmana-client-c6cf9a6a9c03f17362171aeed1a22244d99b7530.tar.gz
mana-client-c6cf9a6a9c03f17362171aeed1a22244d99b7530.tar.bz2
mana-client-c6cf9a6a9c03f17362171aeed1a22244d99b7530.tar.xz
mana-client-c6cf9a6a9c03f17362171aeed1a22244d99b7530.zip
Disable alpha values affecting two widgets which would otherwise take
alpha values under SDL. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/progressbar.cpp')
-rw-r--r--src/gui/progressbar.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp
index 5e8e6655..a1b847c8 100644
--- a/src/gui/progressbar.cpp
+++ b/src/gui/progressbar.cpp
@@ -103,7 +103,10 @@ void ProgressBar::draw(gcn::Graphics *graphics)
{
if (config.getValue("guialpha", 0.8) != mAlpha)
{
- mAlpha = config.getValue("guialpha", 0.8);
+ if (config.getValue("opengl", 0))
+ mAlpha = config.getValue("guialpha", 0.8);
+ else
+ mAlpha = 1.0f;
for (int i = 0; i < 9; i++)
{
mBorder.grid[i]->setAlpha(mAlpha);