| Summary: | RGBA->RGBA blit error | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Dimitris Zenios <dimitris.zenios> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Source code and image | ||
I think you are missing the alpha information on the "final_surface" surface...or should I say, the alpha channel is set entirely to zero, so the image doesn't show up. Try adding: SDL_FillRect(final_surface, NULL, SDL_MapRGBA(final_surface->format, 0, 0,0,255)); after /*Blit the surface to another surface o check for RGBA->RGBA*/ final_surface = surface_new(temp->w,temp->h); And you'll see the test works fine. Closing as discussed with Dimitris |
Created attachment 811 [details] Source code and image It seems there is a bug when blitting RGBA->RGBA.The final surface is always blank. Attached is the test application and the image used