summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@coffee.donpellegrino.com>2009-08-17 23:38:54 (GMT)
committer Don Pellegrino <don@coffee.donpellegrino.com>2009-08-17 23:38:54 (GMT)
commit0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c (patch) (side-by-side diff)
tree9e4759a0d26e70e749f0951a64f014c3e441665c
parent5c300e702d7f1944417004ddcb0a6b15f107b5e5 (diff)
downloadexp005-0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c.zip
exp005-0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c.tar.gz
exp005-0764c52f3f9c8d6b59fd8a5d70634f1544c22a6c.tar.bz2
Modified to use CTRL modifier for zoom selections as well.
-rw-r--r--src/controller/callbacks/mouse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controller/callbacks/mouse.c b/src/controller/callbacks/mouse.c
index f594c23..f901476 100644
--- a/src/controller/callbacks/mouse.c
+++ b/src/controller/callbacks/mouse.c
@@ -26,7 +26,9 @@ mouse (int button, int state, int x, int y)
// Deactive a panning event if one was happening.
S.pan.active = false;
- if (S.selection.active && S.selection.purpose == ZOOM)
+ if (S.selection.active &&
+ S.selection.purpose == ZOOM &&
+ glutGetModifiers () == GLUT_ACTIVE_CTRL)
{
/*
* NOOP if the mouse was not moved.

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.