summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 22:25:54 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 22:25:54 +0000
commit8e1c3b592c9ebcec9e006bcc54eea55bfea4a864 (patch)
tree134de69274dad771a4cd9297a0a0617ed28a0543 /src/gui/window.cpp
parent0ce6e9e8400c326e6848688b3b865c84d96e3073 (diff)
downloadmana-client-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.gz
mana-client-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.bz2
mana-client-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.tar.xz
mana-client-8e1c3b592c9ebcec9e006bcc54eea55bfea4a864.zip
Removed guiGraphics global pointer and removed dependencies on gui.h in some places.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 2ded3858..07b85ea5 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -25,7 +25,6 @@
#include <guichan/exception.hpp>
-#include "gui.h"
#include "windowcontainer.h"
#include "../configuration.h"
@@ -310,26 +309,26 @@ void Window::mouseMotion(int x, int y)
newDim.y = 0;
}
- if (newDim.x + newDim.width > guiGraphics->getWidth())
+ if (newDim.x + newDim.width > windowContainer->getWidth())
{
if (mMouseResize)
{
- newDim.width = guiGraphics->getWidth() - newDim.x;
+ newDim.width = windowContainer->getWidth() - newDim.x;
}
else
{
- newDim.x = guiGraphics->getWidth() - newDim.width;
+ newDim.x = windowContainer->getWidth() - newDim.width;
}
}
- if (newDim.y + newDim.height > guiGraphics->getHeight())
+ if (newDim.y + newDim.height > windowContainer->getHeight())
{
if (mMouseResize)
{
- newDim.height = guiGraphics->getHeight() - newDim.y;
+ newDim.height = windowContainer->getHeight() - newDim.y;
}
else
{
- newDim.y = guiGraphics->getHeight() - newDim.height;
+ newDim.y = windowContainer->getHeight() - newDim.height;
}
}