summaryrefslogtreecommitdiff
path: root/UserInput.cpp
diff options
context:
space:
mode:
authorKris Parker2009-12-19 08:06:23 +0000
committerKris Parker2009-12-19 08:06:23 +0000
commitff36bb3fe9435a0fb5f301e7f25ce7c67022ded1 (patch)
tree3d4256d7efdf75c3ce975a5d37739133eb029564 /UserInput.cpp
parente898546350cc16828db7b97972659a76b1d1f174 (diff)
downloadstonesense-ff36bb3fe9435a0fb5f301e7f25ce7c67022ded1.tar.gz
stonesense-ff36bb3fe9435a0fb5f301e7f25ce7c67022ded1.tar.bz2
stonesense-ff36bb3fe9435a0fb5f301e7f25ce7c67022ded1.tar.xz
Gui tweaks needed due to extra z level
Diffstat (limited to 'UserInput.cpp')
-rw-r--r--UserInput.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/UserInput.cpp b/UserInput.cpp
index bb1f970..3886483 100644
--- a/UserInput.cpp
+++ b/UserInput.cpp
@@ -111,8 +111,9 @@ void doKeys(){
int diffy = blocky - config.segmentSize.y/2;
/*we use changeRelativeToRotation directly, and not through moveViewRelativeToRotation
because we don't want to move the offset with the mouse. It just feels weird. */
- changeRelativeToRotation(DisplayedSegmentX, DisplayedSegmentY, diffx+5, diffy+5 );
- //moveViewRelativeToRotation(diffx+5, diffy+5); // for whatever reason, the +5 makes it be centered, someone should check this works correctly in other resolutions than 800x600
+ // changing to +1,+1 which moves the clicked point to one of the 4 surrounding the center of rotation
+ changeRelativeToRotation(DisplayedSegmentX, DisplayedSegmentY, diffx+1, diffy+1 );
+ //moveViewRelativeToRotation(diffx+1, diffy+1);
timeToReloadSegment = true;
//rest(50);
}