forked from Mirrors/wine-wine
dinput: Increase device buffer size to 1024.
The buffer size was previously limited to 20 in:stable8d05256172
Testing shows that it is somewhere around 1024 on Windows, and using a smaller buffer causes some input data to be lost with high polling rate mouses. It can be spotted in Wolfenstein II: New Colossus menus. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> (cherry picked from commit50440e28bb
) Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
parent
afba948ba9
commit
2fc491c389
|
@ -1398,7 +1398,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_SetProperty(
|
|||
EnterCriticalSection(&This->crit);
|
||||
|
||||
This->buffersize = pd->dwData;
|
||||
This->queue_len = min(This->buffersize, 20);
|
||||
This->queue_len = min(This->buffersize, 1024);
|
||||
HeapFree(GetProcessHeap(), 0, This->data_queue);
|
||||
|
||||
This->data_queue = !This->queue_len ? NULL : HeapAlloc(GetProcessHeap(), 0,
|
||||
|
|
Loading…
Reference in New Issue