We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1408

Summary: RGBA->RGBA blit error
Product: SDL Reporter: Dimitris Zenios <dimitris.zenios>
Component: videoAssignee: 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

Description Dimitris Zenios 2012-02-01 08:48:22 UTC
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
Comment 1 Gabriel Jacobo 2012-02-01 18:27:32 UTC
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.
Comment 2 Gabriel Jacobo 2012-02-06 07:10:39 UTC
Closing as discussed with Dimitris