From 333b706b4b643382c1924eec0ca1666a202a5838 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 8 May 2009 10:00:13 -0600 Subject: Make sure all tab modes get their opacity update --- src/gui/widgets/tab.cpp | 8 ++++++-- 1 file 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); + } } } -- cgit v1.2.3-70-g09d2