diff options
author | Bertram <bertram@cegetel.net> | 2009-09-03 20:37:08 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-09-03 20:37:08 +0200 |
commit | ecf588b5ef86804b0074c54b6371cda9e8f346c2 (patch) | |
tree | bff015ac332d0bfd359ebd932236f37003a578e6 /src/gui/widgets/window.cpp | |
parent | efb541eeef2ad839c885c494c3a065f1f7d5dc03 (diff) | |
download | mana-ecf588b5ef86804b0074c54b6371cda9e8f346c2.tar.gz mana-ecf588b5ef86804b0074c54b6371cda9e8f346c2.tar.bz2 mana-ecf588b5ef86804b0074c54b6371cda9e8f346c2.tar.xz mana-ecf588b5ef86804b0074c54b6371cda9e8f346c2.zip |
Resolved Mantis #847: Login stage Windows won't go less than the default gui opacity.
Of course, in-game, the wanted opacity still shows up.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 9c098bdb..0ffae6ea 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -684,7 +684,8 @@ int Window::getResizeHandles(gcn::MouseEvent &event) int Window::getGuiAlpha() { - float alpha = config.getValue("guialpha", 0.8); + float alpha = std::max(config.getValue("guialpha", 0.8), + (double)SkinLoader::instance()->getMinimumOpacity()); return (int) (alpha * 255.0f); } |