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
1 changed files with 1 additions and 2 deletions

View File

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