| Summary: | SDL_RenderCopy shifts negative coordinates | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Igor S. <scorched> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
| Attachments: | Example | ||
Can you try with the latest Mercurial? http://www.libsdl.org/tmp/SDL-2.0.zip I'm seeing the background image float in a figure eight pattern, clipped by the window. Is that the correct behavior? Happens for me with the newly built DLL too. Yes, 8-figure is correct, but when a sprite crosses the left or top edge of window, its coordinates are negative and seem to be rounded in the opposite direction of when they are positive. Visually it's seen as one-pixel jerk at the moment of touching the window border. Just realized in this old test project the rounding happens at my side, and SDL_RenderCopy only takes integers. So not a bug in SDL. Great, I'm glad you figured it out. :) |
Created attachment 2500 [details] Example SDL_RenderCopy is shifting dstrect coordinates when negative. See attached example Please forgive my coding style :-)