summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lange <klange@ogunderground.com>2008-02-02 21:48:53 -0500
committerKevin Lange <klange@ogunderground.com>2008-02-02 21:48:53 -0500
commit1bbe4af8f4c96b196640b5004b5dac87c3e9ede1 (patch)
treeb490b5f206f3287c66aea0ce54d796983b44a46b
parent38b8b19ff439a73ca1c884580698af1a605bab8f (diff)
downloadwiitrack-1bbe4af8f4c96b196640b5004b5dac87c3e9ede1.tar.gz
wiitrack-1bbe4af8f4c96b196640b5004b5dac87c3e9ede1.tar.bz2
That wasn't needed...
-rw-r--r--wiitrack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiitrack.c b/wiitrack.c
index 48f2ab3..c2c1a4f 100644
--- a/wiitrack.c
+++ b/wiitrack.c
@@ -273,7 +273,7 @@ static void WTLeeTrackPosition (CompScreen *s, float x1, float y1,
float pointDist = (float)sqrt(dx * dx + dy * dy);
float angle = radPerPix * pointDist / 2.0;
// Set the head distance in units of screen size
- wts->head.z = ((float)wiitrackGetBarWidth (s) / 10.0) / (float)tan(angle);
+ wts->head.z = ((float)wiitrackGetBarWidth (s) / 100.0) / (float)tan(angle);
float aX = (x1 + x2) / 2.0f, aY = (y1 + y2) / 2.0f;
// Set the head position horizontally
wts->head.x = (float)sin(radPerPix * (aX - 512.0)) * wts->head.z;