mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 21:30:57 +00:00
Fix trailing whitespace
This commit is contained in:
parent
6ab20fa776
commit
d7c1b080db
@ -879,7 +879,7 @@ static void initPenTablet(Display *display)
|
|||||||
_glfw.x11.xi.eraser_deviceid = 0;
|
_glfw.x11.xi.eraser_deviceid = 0;
|
||||||
|
|
||||||
if (_glfw.x11.xi.available)
|
if (_glfw.x11.xi.available)
|
||||||
{
|
{
|
||||||
int i, n;
|
int i, n;
|
||||||
XIDeviceInfo *dev_info = XIQueryDevice(display, XIAllDevices, &n);
|
XIDeviceInfo *dev_info = XIQueryDevice(display, XIAllDevices, &n);
|
||||||
|
|
||||||
|
@ -1218,13 +1218,10 @@ static void processEvent(XEvent *event)
|
|||||||
0, 5, False,
|
0, 5, False,
|
||||||
XIAnyPropertyType,
|
XIAnyPropertyType,
|
||||||
&type, &format, &num_items, &bytes_after,
|
&type, &format, &num_items, &bytes_after,
|
||||||
(unsigned char **)&data
|
(unsigned char **)&data) == Success)
|
||||||
) != Success)
|
|
||||||
data = NULL;
|
|
||||||
|
|
||||||
if (data && format == 32 && num_items > 4)
|
|
||||||
{
|
{
|
||||||
_glfwInputPenTabletProximity(((unsigned int *)data)[4] != 0);
|
if (format == 32 && num_items > 4)
|
||||||
|
_glfwInputPenTabletProximity(((unsigned int *)data)[4] != 0);
|
||||||
XFree(data);
|
XFree(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user