You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.0 Reported for operating system, platform: All, x86
Comments on the original bug report:
On 2018-04-01 07:45:03 +0000, Ryan C. Gordon wrote:
All SDL_HapticEffect fields are intended to max out at 0x7FFF, but test/testhaptic.c tries to pass 0xFFFF for several tests. It doesn't appear that SDL makes any attempt to clamp or check this. Not sure if we should fix the test program or SDL.
--ryan.
On 2018-05-05 02:03:27 +0000, Ethan Lee wrote:
Created attachment 3239
Patch to fix Linux magnitude scaling, add FIXME
Attached is a patch that at least makes the runtime output consistent, but it's honestly really hard to tell what should be clamped to what and when it should be clamped. Because of that the patch does not touch the test program, but it at least fixes the one platform that stuck out regarding what the magnitude range should be as of the current API.
We should probably take all the clamping that's done in the SYS functions (which all seems to be using a copypasted macro...?) and do it at the surface-level function to make it easier to read. But that's probably risky to do without extensive testing, so I didn't do that either. Will need to spend a day or two cleaning all that up!
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: All, x86
Comments on the original bug report:
On 2018-04-01 07:45:03 +0000, Ryan C. Gordon wrote:
On 2018-05-05 02:03:27 +0000, Ethan Lee wrote:
On 2018-10-01 16:44:41 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: