mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 10:58:19 +02:00
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 <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 23e3d1f233)
This commit is contained in:
parent
1f1c1ae856
commit
fb84f8b5c7
1 changed files with 4 additions and 4 deletions
|
|
@ -114,9 +114,9 @@ button_is_down(DeviceIntPtr pDev, int button, int type)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (type & BUTTON_PROCESSED)
|
if (type & BUTTON_PROCESSED)
|
||||||
ret |= !!BitIsOn(pDev->button->down, button);
|
ret |= BitIsOn(pDev->button->down, button);
|
||||||
if (type & BUTTON_POSTED)
|
if (type & BUTTON_POSTED)
|
||||||
ret |= !!BitIsOn(pDev->button->postdown, button);
|
ret |= BitIsOn(pDev->button->postdown, button);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
@ -145,9 +145,9 @@ key_is_down(DeviceIntPtr pDev, int key_code, int type)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (type & KEY_PROCESSED)
|
if (type & KEY_PROCESSED)
|
||||||
ret |= !!BitIsOn(pDev->key->down, key_code);
|
ret |= BitIsOn(pDev->key->down, key_code);
|
||||||
if (type & KEY_POSTED)
|
if (type & KEY_POSTED)
|
||||||
ret |= !!BitIsOn(pDev->key->postdown, key_code);
|
ret |= BitIsOn(pDev->key->postdown, key_code);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue