summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Byer <bbyer@apple.com>2008-04-17 02:31:53 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-17 10:42:08 -0700
commit582397cd024c68df65ab9dececd6d2c40a5a261b (patch)
tree26563e591690b3ed77e559d25522f8812b2f3386
parent0bd1c369cce05d5a4da5e3fd7033aea8c68460ec (diff)
oops, missed a spot
(cherry picked from commit 19872a6aeb8ee9cb0e33e4b4ffd794c9dbefe0cf)
-rw-r--r--hw/xquartz/darwinEvents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c
index bb2a97d32..37a66f7c4 100644
--- a/hw/xquartz/darwinEvents.c
+++ b/hw/xquartz/darwinEvents.c
@@ -459,7 +459,7 @@ void DarwinSendScrollEvents(float count_x, float count_y,
ErrorF("DarwinSendScrollEvents called before darwinEvents was initialized\n");
return;
}
- ErrorF("scroll(%f, %f)\n", count_x, count_y);
+
int sign_x = count_x > 0.0f ? SCROLLWHEELLEFTFAKE : SCROLLWHEELRIGHTFAKE;
int sign_y = count_y > 0.0f ? SCROLLWHEELUPFAKE : SCROLLWHEELDOWNFAKE;
count_x = fabs(count_x);