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

Summary: SDL_UpperBlit swaps Red and Blue componensts for a * 24-bit to 32-bit surface blit
Product: SDL Reporter: Lenard Lindstrom <len-l>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.2   
Hardware: x86   
OS: Linux   
Attachments: Blit a 24-bit surface to a 32-bit target surface using SDL_UpperBlit

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!