| Summary: | Wrong blitting in testbitmap test | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mike Gorchak <mike> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED WONTFIX | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | rodrigo.alfenas |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Screenshot of the issue | ||
|
Description
Mike Gorchak
2009-10-12 09:30:09 UTC
Created attachment 414 [details]
Screenshot of the issue
This bug looks like it's always been there. Here's the code that's wrong:
SDL_blit.c, line 70:
info->src = (Uint8 *) src->pixels +
(Uint16) srcrect->y * src->pitch +
(Uint16) srcrect->x * info->src_fmt->BytesPerPixel;
and of course:
info->src_skip =
info->src_pitch - info->src_w * info->src_fmt->BytesPerPixel;
The fix is non-trivial. Is this affecting something you're working on?
No response in 4 years. Closing bug. |