diff options
-rw-r--r-- | src/gui/window.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index dba65143..66f38aa8 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -58,9 +58,6 @@ class WindowConfigListener : public ConfigListener void optionChanged(const std::string &) { Window::mAlphaChanged = true; -// for_each(Window::border.grid, Window::border.grid + 9, -// std::bind2nd(std::mem_fun(&Image::setAlpha), -// config.getValue("guialpha", 0.8))); } }; @@ -195,6 +192,14 @@ void Window::draw(gcn::Graphics *graphics) getPadding() ); } + + // Update window alpha values + if (mAlphaChanged) + { + for_each(border.grid, border.grid + 9, + std::bind2nd(std::mem_fun(&Image::setAlpha), + config.getValue("guialpha", 0.8))); + } drawChildren(graphics); } |