| Summary: | two potential bugs in effect_position.c file | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | AltairPL <altairpl> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.4 | ||
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
1. all loops in _Eff_position_u8_c4() look like this: for (i = 0; i < len; i += sizeof (Uint8) * 6) Shouldn't multiplier be 4 here (as in other _c4 functions)? 2. IMHO, angle adjustment in Mix_SetPosition() is incorrect, since passing -90 angle will simply change it to 90 instead of 270. I think it should be something like: angle %= 360; if (angle < 0) angle += 360;