summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-08 10:00:13 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-08 10:00:13 -0600
commit333b706b4b643382c1924eec0ca1666a202a5838 (patch)
tree11fb2f1cd687d488f1b0699b116c6aee551f4c74
parent63ddb001682962c96088975e83ae8ea313fe393d (diff)
downloadmana-client-333b706b4b643382c1924eec0ca1666a202a5838.tar.gz
mana-client-333b706b4b643382c1924eec0ca1666a202a5838.tar.bz2
mana-client-333b706b4b643382c1924eec0ca1666a202a5838.tar.xz
mana-client-333b706b4b643382c1924eec0ca1666a202a5838.zip
Make sure all tab modes get their opacity update
-rw-r--r--src/gui/widgets/tab.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index 071be06a..c98ecee4 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -141,13 +141,17 @@ void Tab::draw(gcn::Graphics *graphics)
}
}
+ // TODO We don't need to do this for every tab on every draw
+ // Maybe use a config listener to do it as the value changes.
if (config.getValue("guialpha", 0.8) != mAlpha)
{
mAlpha = config.getValue("guialpha", 0.8);
for (int a = 0; a < 9; a++)
{
- tabImg[TAB_SELECTED].grid[a]->setAlpha(mAlpha);
- tabImg[TAB_STANDARD].grid[a]->setAlpha(mAlpha);
+ for (int t = 0; t < TAB_COUNT; t++)
+ {
+ tabImg[t].grid[a]->setAlpha(mAlpha);
+ }
}
}