[PATCH evdev 1/4] Move invert variable to the block it is used in.
Peter Hutterer
peter.hutterer at who-t.net
Tue May 17 22:00:55 PDT 2011
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index b1a822b..389ccc8 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2237,10 +2237,10 @@ EvdevInitProperty(DeviceIntPtr dev)
InputInfoPtr pInfo = dev->public.devicePrivate;
EvdevPtr pEvdev = pInfo->private;
int rc;
- BOOL invert[2];
if (pEvdev->flags & (EVDEV_RELATIVE_EVENTS | EVDEV_ABSOLUTE_EVENTS))
{
+ BOOL invert[2];
invert[0] = pEvdev->invert_x;
invert[1] = pEvdev->invert_y;
--
1.7.4.4
More information about the xorg-devel
mailing list