Fix trailing whitespace

This commit is contained in:
Anaël Seghezzi 2019-03-08 18:14:51 +01:00
parent 6ab20fa776
commit d7c1b080db
2 changed files with 4 additions and 7 deletions

View File

@ -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);

View File

@ -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);
} }
} }