summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-18 12:19:24 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-05-20 13:38:26 +1000
commit7611d2fc7357c44f56fed174d90681d5128f99e3 (patch)
tree529d632be909d4ccb99fbc9886ecf3deed58793a
parentebe41bfba77ba9c95d990d47d5e8f5a8a4f7477e (diff)
Move invert variable to the block it is used in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--src/evdev.c2
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;