Commit 3241974e authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: Simplify code a bit.

parent b88c1677
...@@ -64,8 +64,7 @@ extern HHOOK set_dinput_hook(int hook_id, LPVOID proc); ...@@ -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; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment