From ecf588b5ef86804b0074c54b6371cda9e8f346c2 Mon Sep 17 00:00:00 2001 From: Bertram Date: Thu, 3 Sep 2009 20:37:08 +0200 Subject: 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. --- src/gui/widgets/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/window.cpp') 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); } -- cgit v1.2.3-70-g09d2