summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-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);
+ }
}
}