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 3045 - SDL_UpperBlit swaps Red and Blue componensts for a * 24-bit to 32-bit surface blit
Summary: SDL_UpperBlit swaps Red and Blue componensts for a * 24-bit to 32-bit surfac...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.2
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-29 19:14 UTC by Lenard Lindstrom
Modified: 2015-06-30 05:26 UTC (History)
0 users

See Also:


Attachments
Blit a 24-bit surface to a 32-bit target surface using SDL_UpperBlit (2.54 KB, text/x-csrc)
2015-06-29 19:14 UTC, Lenard Lindstrom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lenard Lindstrom 2015-06-29 19:14:06 UTC
Created attachment 2206 [details]
Blit a 24-bit surface to a 32-bit target surface using SDL_UpperBlit

When blitting a 24-bit source surface with default format (GBR888 on test system) to a 32-bit target surface (with not per-pixel alpha in the test case) the Red and Blue components of the source pixels are swapped when copied to the target surface. See the attached example program.
Comment 1 Sam Lantinga 2015-06-30 05:26:14 UTC
This is fixed in 2.0.4 RC2, thanks for the great test program!