summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 09:38:31 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 09:38:31 +0000
commit15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756 (patch)
tree150a56dbcd731e1abcfc168fd5e937a3b2cd7ddc /src/gui/window.cpp
parent78e280de977329aec2b9ad5926882dc9af4d152d (diff)
downloadmana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.tar.gz
mana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.tar.bz2
mana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.tar.xz
mana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.zip
Removed unnecessary Gui::isCustomCursor method.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index a4c81bc7..7df5e3ac 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -117,10 +117,7 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
if (mModal)
{
- if (gui->isCustomCursor())
- {
- gui->setCursorType(Gui::CURSOR_POINTER);
- }
+ gui->setCursorType(Gui::CURSOR_POINTER);
requestModalFocus();
}
@@ -161,9 +158,7 @@ Window::~Window()
delete border.grid[6];
delete border.grid[7];
delete border.grid[8];
-
closeImage->decRef();
- closeImage = NULL;
}
delete mChrome;
@@ -396,8 +391,7 @@ void Window::mousePressed(gcn::MouseEvent &event)
void Window::mouseReleased(gcn::MouseEvent &event)
{
if (mResizable &&
- mouseResize &&
- gui->isCustomCursor())
+ mouseResize)
{
mouseResize = 0;
gui->setCursorType(Gui::CURSOR_POINTER);
@@ -407,8 +401,7 @@ void Window::mouseReleased(gcn::MouseEvent &event)
void Window::mouseExited(gcn::MouseEvent &event)
{
if (mResizable &&
- !mouseResize &&
- gui->isCustomCursor())
+ !mouseResize)
{
gui->setCursorType(Gui::CURSOR_POINTER);
}
@@ -421,8 +414,7 @@ void Window::mouseMoved(gcn::MouseEvent &event)
// changes the custom mouse cursor based on it's current position.
if (mResizable &&
- !mouseResize &&
- gui->isCustomCursor())
+ !mouseResize)
{
gcn::Rectangle tContainerRect(
getPadding(),