Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RGBA->RGBA blit error #541

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

RGBA->RGBA blit error #541

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
invalid This doesn't seem right

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2012-02-01 08:48:22 +0000, Dimitris Zenios wrote:

Created attachment 811
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

On 2012-02-01 18:27:32 +0000, Gabriel Jacobo wrote:

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.

On 2012-02-06 07:10:39 +0000, Gabriel Jacobo wrote:

Closing as discussed with Dimitris

@SDLBugzilla SDLBugzilla added bug invalid This doesn't seem right labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant