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 4229

Summary: Add support for ABGR format in DirectFB renderer
Product: SDL Reporter: Alexandre <rockytvbr+libsdl>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.8   
Hardware: All   
OS: Windows 10   
Attachments: Patch that adds support for DirectFB ABGR format

Description Alexandre 2018-08-15 02:42:15 UTC
Created attachment 3283 [details]
Patch that adds support for DirectFB ABGR format

DirectFB supports 32-bit ABGR pixel format via DSPF_ABGR, but SDL doesn't map SDL_PIXELFORMAT_ABGR8888 to DSPF_ABGR.


A patch is attached and should add support for ABGR pixel format devices.
Comment 1 Alexandre 2018-08-19 19:49:41 UTC
It was tested on a Moto X (ghost) via postmarketOS. Link to the issue: https://gitlab.com/postmarketOS/osk-sdl/issues/85
Comment 2 Sam Lantinga 2018-08-28 20:37:35 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/ee7f3955c9fb