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 - SDL_MapRGBA and SDL_MapRGB does not return the correct values on big edian system
Summary: SDL_MapRGBA and SDL_MapRGB does not return the correct values on big edian sy...
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.14
Hardware: PowerPC All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-19 13:10 UTC by erik
Modified: 2011-12-29 01:45 UTC (History)
1 user (show)

See Also:


Attachments
the testcase (2.41 KB, application/zip)
2011-07-19 13:10 UTC, erik
Details

Note You need to log in before you can comment on or make changes to this bug.
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!