diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-04-19 16:20:30 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-04-23 20:20:41 -0700 |
commit | eda85290ae47d8dd497ef9335d10268bbe3e02a0 (patch) | |
tree | b05fb76b568fec0d9001a369d32aa5e07b7eca3e /hw/xquartz | |
parent | b99586c9086ac29df144ef75df92f8c0c7554651 (diff) |
XQuartz: Use screenInfo.{width,height} instead of grabbing it from the first screen
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'hw/xquartz')
-rw-r--r-- | hw/xquartz/darwinEvents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c index 9fc23a31b..25f011be9 100644 --- a/hw/xquartz/darwinEvents.c +++ b/hw/xquartz/darwinEvents.c @@ -504,8 +504,8 @@ DarwinSendTabletEvents(DeviceIntPtr pDev, int ev_type, int ev_button, pointer_y = 0.0; /* Adjust our pointer location to the [0,1] range */ - pointer_x = pointer_x / (double)screenInfo.screens[0]->width; - pointer_y = pointer_y / (double)screenInfo.screens[0]->height; + pointer_x = pointer_x / (double)screenInfo.width; + pointer_y = pointer_y / (double)screenInfo.height; valuator_mask_zero(&valuators); valuator_mask_set_double(&valuators, 0, XQUARTZ_VALUATOR_LIMIT * pointer_x); |