summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index 671fad36..3bdd6bd1 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -59,7 +59,7 @@ PlayerBox::PlayerBox(const Being *being):
}
}
- background.setAlpha(config.getFloatValue("guialpha"));
+ background.setAlpha(config.guiAlpha);
textbox->decRef();
}
@@ -90,9 +90,10 @@ void PlayerBox::draw(gcn::Graphics *graphics)
mBeing->drawSpriteAt(static_cast<Graphics*>(graphics), x, y);
}
- if (config.getFloatValue("guialpha") != mAlpha)
+ if (config.guiAlpha != mAlpha)
{
- background.setAlpha(config.getFloatValue("guialpha"));
+ mAlpha = config.guiAlpha;
+ background.setAlpha(config.guiAlpha);
}
}