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 - RGBA->RGBA blit error
Summary: RGBA->RGBA blit error
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 08:48 UTC by Dimitris Zenios
Modified: 2012-02-06 07:10 UTC (History)
1 user (show)

See Also:


Attachments
Source code and image (11.42 KB, application/x-gzip)
2012-02-01 08:48 UTC, Dimitris Zenios
Details

Note You need to log in before you can comment on or make changes to this bug.
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