dinput: Simplify code a bit.

This commit is contained in:
Vitaliy Margolen 2006-07-22 13:11:33 -06:00 committed by Alexandre Julliard
parent b88c1677d1
commit 3241974ebd

View file

@ -64,8 +64,7 @@ extern HHOOK set_dinput_hook(int hook_id, LPVOID proc);
(int) (data), (int) (offset), \ (int) (data), (int) (offset), \
(int) (This->queue_head), (int) (This->queue_len)); \ (int) (This->queue_head), (int) (This->queue_len)); \
\ \
nq = This->queue_head+1; \ nq = (This->queue_head+1) % This->queue_len; \
while (nq >= This->queue_len) nq -= This->queue_len; \
if ((offset >= 0) && (nq != This->queue_tail)) { \ if ((offset >= 0) && (nq != This->queue_tail)) { \
This->data_queue[This->queue_head].dwOfs = offset; \ This->data_queue[This->queue_head].dwOfs = offset; \
This->data_queue[This->queue_head].dwData = data; \ This->data_queue[This->queue_head].dwData = data; \