mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-27 07:23:40 +00:00
dix: devices: use X_REPLY_FIELD_* macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
87b531953e
commit
20e6ef5afa
1 changed files with 7 additions and 13 deletions
|
|
@ -2208,11 +2208,9 @@ ProcGetKeyboardControl(ClientPtr client)
|
|||
for (int i = 0; i < 32; i++)
|
||||
reply.map[i] = ctrl->autoRepeats[i];
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&reply.ledMask);
|
||||
swaps(&reply.bellPitch);
|
||||
swaps(&reply.bellDuration);
|
||||
}
|
||||
X_REPLY_FIELD_CARD32(ledMask);
|
||||
X_REPLY_FIELD_CARD16(bellPitch);
|
||||
X_REPLY_FIELD_CARD16(bellDuration);
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
|
|
@ -2358,11 +2356,9 @@ ProcGetPointerControl(ClientPtr client)
|
|||
.threshold = ctrl->threshold
|
||||
};
|
||||
|
||||
if (client->swapped) {
|
||||
swaps(&reply.accelNumerator);
|
||||
swaps(&reply.accelDenominator);
|
||||
swaps(&reply.threshold);
|
||||
}
|
||||
X_REPLY_FIELD_CARD16(accelNumerator);
|
||||
X_REPLY_FIELD_CARD16(accelDenominator);
|
||||
X_REPLY_FIELD_CARD16(threshold);
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
|
|
@ -2446,9 +2442,7 @@ ProcGetMotionEvents(ClientPtr client)
|
|||
.nEvents = nEvents,
|
||||
};
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&reply.nEvents);
|
||||
}
|
||||
X_REPLY_FIELD_CARD32(nEvents);
|
||||
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, reply, rpcbuf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue