summaryrefslogtreecommitdiff
path: root/src/gui/popup.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-11 21:38:17 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 21:38:17 -0600
commitc410a861fddc7829408d687e61c67c6101555067 (patch)
treec97f3ddaab9184b00d8e91cc65b759bcc719ff41 /src/gui/popup.cpp
parent1e2fbea2e6d4ab319763c6ffb35e4e4acdd4d5f5 (diff)
downloadmana-c410a861fddc7829408d687e61c67c6101555067.tar.gz
mana-c410a861fddc7829408d687e61c67c6101555067.tar.bz2
mana-c410a861fddc7829408d687e61c67c6101555067.tar.xz
mana-c410a861fddc7829408d687e61c67c6101555067.zip
Modified Skin class to use proper encapsulation, instead of leaving its
skin variables public. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/popup.cpp')
-rw-r--r--src/gui/popup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/popup.cpp b/src/gui/popup.cpp
index 4cf6bbf0..8e0c8fb9 100644
--- a/src/gui/popup.cpp
+++ b/src/gui/popup.cpp
@@ -123,12 +123,12 @@ void Popup::draw(gcn::Graphics *graphics)
Graphics *g = static_cast<Graphics*>(graphics);
- g->drawImageRect(0, 0, getWidth(), getHeight(), mSkin->border);
+ g->drawImageRect(0, 0, getWidth(), getHeight(), mSkin->getBorder());
// Update Popup alpha values
if (mAlphaChanged)
{
- for_each(mSkin->border.grid, mSkin->border.grid + 9,
+ for_each(mSkin->getBorder().grid, mSkin->getBorder().grid + 9,
std::bind2nd(std::mem_fun(&Image::setAlpha),
config.getValue("guialpha", 0.8)));
}
@@ -201,7 +201,7 @@ void Popup::setGuiAlpha()
for (int i = 0; i < 9; i++)
{
//logger->log("Popup::setGuiAlpha: Border Image (%i)", i);
- mSkin->border.grid[i]->setAlpha(config.getValue("guialpha", 0.8));
+ mSkin->getBorder().grid[i]->setAlpha(config.getValue("guialpha", 0.8));
}
mAlphaChanged = false;