diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-04-15 01:22:17 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-04-15 01:22:17 +0000 |
commit | 59c80255ddd1de9698a75c49ec7a6a1b7c4c1069 (patch) | |
tree | 53236090da5c6c6fc92e948e94d4c2859ae163f8 /src/gui/inventorywindow.cpp | |
parent | a3770925c652e0d2bab15f5bd46fa740345a28d0 (diff) | |
download | mana-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.tar.gz mana-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.tar.bz2 mana-59c80255ddd1de9698a75c49ec7a6a1b7c4c1069.tar.xz mana-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.cpp | 7 |
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(); } } |