diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-30 09:06:56 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-30 09:06:56 -0700 |
commit | 4c0f83e55fd1f6fabc2d8152843175b8ea55bc2b (patch) | |
tree | b5010cd89c164b92ae237e4931b78bef6dabce2a /src/gui/window.cpp | |
parent | ea9ca516da190a1a328b455c4d98a9fd57182e55 (diff) | |
download | mana-4c0f83e55fd1f6fabc2d8152843175b8ea55bc2b.tar.gz mana-4c0f83e55fd1f6fabc2d8152843175b8ea55bc2b.tar.bz2 mana-4c0f83e55fd1f6fabc2d8152843175b8ea55bc2b.tar.xz mana-4c0f83e55fd1f6fabc2d8152843175b8ea55bc2b.zip |
Re-enabled real time gui opacity updating.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/window.cpp')
-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); } |