Commit 23e3d1f2 authored by Peter Hutterer's avatar Peter Hutterer

dix: remove now unnecessary !! before BitIsOn()

The macro has been changed to do this already, no need for double
not-not-ing.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent 42dc91e3
......@@ -115,9 +115,9 @@ button_is_down(DeviceIntPtr pDev, int button, int type)
int ret = 0;
if (type & BUTTON_PROCESSED)
ret |= !!BitIsOn(pDev->button->down, button);
ret |= BitIsOn(pDev->button->down, button);
if (type & BUTTON_POSTED)
ret |= !!BitIsOn(pDev->button->postdown, button);
ret |= BitIsOn(pDev->button->postdown, button);
return ret;
}
......@@ -146,9 +146,9 @@ key_is_down(DeviceIntPtr pDev, int key_code, int type)
int ret = 0;
if (type & KEY_PROCESSED)
ret |= !!BitIsOn(pDev->key->down, key_code);
ret |= BitIsOn(pDev->key->down, key_code);
if (type & KEY_POSTED)
ret |= !!BitIsOn(pDev->key->postdown, key_code);
ret |= BitIsOn(pDev->key->postdown, key_code);
return ret;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment