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 1247

Summary: SDL_MapRGBA and SDL_MapRGB does not return the correct values on big edian system
Product: SDL Reporter: erik <stipmonster>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: stipmonster
Version: 1.2.14   
Hardware: PowerPC   
OS: All   
Attachments: the testcase

Description erik 2011-07-19 13:10:45 UTC
Created attachment 647 [details]
the testcase

when SDL_MapRGBA(img->format,0xFF,0x00,0xFF,0xFF); is called it should (on big edian) return 0xFFFF00FF, but it returns 0xFF00FF00. I have tested is on a different ppc computer and the same bug occurs. This is the same for SDL_MapRGB.
I added a test file for testing.
Comment 1 Sam Lantinga 2011-12-29 01:45:02 UTC
I don't have a big endian computer to test a fix.  Please reopen this bug if you have a patch!