summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 7eb8643f..ab37dae8 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -69,6 +69,10 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
// Load GUI alpha setting
guiAlpha = config.getValue("guialpha", 0.8f);
+
+ // Set GUI alpha level
+ dBackground->setAlpha(guiAlpha);
+ dBorders->setAlpha(guiAlpha);
}
Window::~Window()
@@ -100,9 +104,6 @@ void Window::draw(gcn::Graphics* graphics)
{
int x, y;
getAbsolutePosition(x, y);
-
- dBackground->setAlpha(guiAlpha);
- dBorders->setAlpha(guiAlpha);
((Graphics*)graphics)->drawImageRect(x, y, getWidth(), getHeight(),
border);