diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-08-09 11:34:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-08-15 12:06:47 +0200 |
commit | 9e313b385bae45a88338a2dbfb008af7a9e38e7a (patch) | |
tree | 3bf666285a2538233e02a5229b30c102d4991e3e /src/gui | |
parent | 638206c925cbe6db40b0ccdf7a39bc8029c6b9fa (diff) | |
download | mana-9e313b385bae45a88338a2dbfb008af7a9e38e7a.tar.gz mana-9e313b385bae45a88338a2dbfb008af7a9e38e7a.tar.bz2 mana-9e313b385bae45a88338a2dbfb008af7a9e38e7a.tar.xz mana-9e313b385bae45a88338a2dbfb008af7a9e38e7a.zip |
Fixed resize border width on bottom and right sides
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/window.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 6b36ebe2..70b6dae8 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -682,14 +682,14 @@ int Window::getResizeHandles(gcn::MouseEvent &event) const int y = event.getY(); const int p = getPadding(); - const bool inPadding = (x < p || x > getWidth() - p) || - (y < p || y > getHeight() - p); + const bool inPadding = (x < p || x >= getWidth() - p) || + (y < p || y >= getHeight() - p); if (inPadding && event.getSource() == this) { - resizeHandles |= (x > getWidth() - resizeBorderWidth) ? RIGHT : + resizeHandles |= (x >= getWidth() - resizeBorderWidth) ? RIGHT : (x < resizeBorderWidth) ? LEFT : 0; - resizeHandles |= (y > getHeight() - resizeBorderWidth) ? BOTTOM : + resizeHandles |= (y >= getHeight() - resizeBorderWidth) ? BOTTOM : (y < resizeBorderWidth) ? TOP : 0; } |