Skip to content

Commit 73f67d5

Browse files
committed
tslib.c: Fix axis label namings
Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
1 parent 7c49061 commit 73f67d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tslib.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ static int xf86TslibControlProc(DeviceIntPtr device, int what)
248248
/* init axis labels */
249249
memset(axis_labels, 0, ARRAY_SIZE(axis_labels) * sizeof(Atom));
250250
if (priv->abs_x_only) {
251-
labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_X);
252-
labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_Y);
253-
labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_PRESSURE);
251+
axis_labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_X);
252+
axis_labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_Y);
253+
axis_labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_PRESSURE);
254254
} else {
255-
labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_X);
256-
labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_Y);
257-
labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_PRESSURE);
255+
axis_labels[0] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_X);
256+
axis_labels[1] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_Y);
257+
axis_labels[2] = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_PRESSURE);
258258
}
259259

260260
if (InitButtonClassDeviceStruct(device,

0 commit comments

Comments
 (0)