summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-04-15 01:22:17 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-04-15 01:22:17 +0000
commit59c80255ddd1de9698a75c49ec7a6a1b7c4c1069 (patch)
tree53236090da5c6c6fc92e948e94d4c2859ae163f8 /src/gui/inventorywindow.cpp
parenta3770925c652e0d2bab15f5bd46fa740345a28d0 (diff)
downloadmana-client-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.tar.gz
mana-client-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.tar.bz2
mana-client-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.tar.xz
mana-client-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.zip
Reimplemented window resizing. It is now once again possible to resize windows
using their borders (except for the top one, since that's the title bar for Guichan) and the resize grip in the bottom right is much easier to grab. Needs some testing.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index e533c16c..982aaaf3 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -165,8 +165,8 @@ void InventoryWindow::mouseClicked(gcn::MouseEvent &event)
if (!item) return;
- /* Convert relative to the window coordinates to
- * absolute screen coordinates.
+ /* Convert relative to the window coordinates to absolute screen
+ * coordinates.
*/
int mx = event.getX() + getX();
int my = event.getY() + getY();
@@ -178,7 +178,8 @@ void InventoryWindow::mouseDragged(gcn::MouseEvent &event)
{
int tmpWidth = getWidth(), tmpHeight = getHeight();
Window::mouseDragged(event);
- if (getWidth() != tmpWidth || getHeight() != tmpHeight) {
+ if (getWidth() != tmpWidth || getHeight() != tmpHeight)
+ {
updateWidgets();
}
}