diff options
author | neoraider <devnull@localhost> | 2008-05-20 11:55:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-05-20 11:55:04 +0200 |
commit | 5bb27d2b6d7915f03fd7e39444a2ff0fac537672 (patch) | |
tree | 16504dbcadf71afd3be79977d3eda2e0a562ed79 /src/Gui | |
parent | 094c72221ea15615b4bcdc31a4acbb4e5c67817a (diff) | |
download | zoomedit-5bb27d2b6d7915f03fd7e39444a2ff0fac537672.tar zoomedit-5bb27d2b6d7915f03fd7e39444a2ff0fac537672.zip |
zoomedit:
* Added 2D vector maths
* Made rooms selectable
Diffstat (limited to 'src/Gui')
-rw-r--r-- | src/Gui/RenderArea.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Gui/RenderArea.cpp b/src/Gui/RenderArea.cpp index 41f76a6..0fcc9ce 100644 --- a/src/Gui/RenderArea.cpp +++ b/src/Gui/RenderArea.cpp @@ -130,8 +130,7 @@ bool RenderArea::onScrollEvent(GdkEventScroll *event) { } bool RenderArea::onButtonPressEvent(GdkEventButton *event) { - if(view && event->button == 1) - view->click(event->x, event->y); + view->click(event->x - get_width()/2, event->y - get_height()/2, event->button); return true; } |