summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 9b05a1389..1037296b6 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -748,7 +748,8 @@ int Window::getResizeHandles(gcn::MouseEvent &event)
const int y = event.getY();
if (mGrip && (y > static_cast<int>(mTitleBarHeight)
- || (y < (int)getPadding() && mTitleBarHeight > getPadding())))
+ || (y < static_cast<int>(getPadding()) && mTitleBarHeight
+ > getPadding())))
{
const int x = event.getX();
@@ -776,7 +777,7 @@ bool Window::isResizeAllowed(gcn::MouseEvent &event)
const int y = event.getY();
if (mGrip && (y > static_cast<int>(mTitleBarHeight)
- || y < (int)getPadding()))
+ || y < static_cast<int>(getPadding())))
{
const int x = event.getX();