diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-08 10:00:13 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-08 10:00:13 -0600 |
commit | 333b706b4b643382c1924eec0ca1666a202a5838 (patch) | |
tree | 11fb2f1cd687d488f1b0699b116c6aee551f4c74 /src/gui/widgets/tab.cpp | |
parent | 63ddb001682962c96088975e83ae8ea313fe393d (diff) | |
download | mana-333b706b4b643382c1924eec0ca1666a202a5838.tar.gz mana-333b706b4b643382c1924eec0ca1666a202a5838.tar.bz2 mana-333b706b4b643382c1924eec0ca1666a202a5838.tar.xz mana-333b706b4b643382c1924eec0ca1666a202a5838.zip |
Make sure all tab modes get their opacity update
Diffstat (limited to 'src/gui/widgets/tab.cpp')
-rw-r--r-- | src/gui/widgets/tab.cpp | 8 |
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); + } } } |