https://bugs.winehq.org/show_bug.cgi?id=57558
Bug ID: 57558 Summary: joy.cpl xinput joysticks circles are cropped by 1px on the bottom Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: win32u Assignee: wine-bugs@winehq.org Reporter: rbernon@codeweavers.com Regression SHA1: 5924ab4c5155d97f4b23a33e97258c1ec382ea02 Distribution: ---
Created attachment 77637 --> https://bugs.winehq.org/attachment.cgi?id=77637 Patch to build a winejoy application to compare on Windows.
As described in the title, the circles are supposed to fit exactly in some bounding rectangle and they are now cropped by 1 pixel on the bottom side. This does not happen on windows with the same code.
This can be reproduced on Wine with `wine control joy.cpl` with a XInput-compatible gamepad plugged in, or with the attached patch.
Because joy.cpl gets overridden on Windows, I'm attaching a patch that builds a dedicated winejoy.exe program that does otherwise the same thing. Included is a hack that fakes XInput gamepad to be plugged in.
The blamed commit is the same as bug 57306, but that commit seems to be about crashes and memory corruption which doesn't look like the same problem.