| Summary: | SDL_MapRGBA and SDL_MapRGB does not return the correct values on big edian system | ||
|---|---|---|---|
| Product: | SDL | Reporter: | erik <stipmonster> |
| Component: | video | Assignee: | 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 | ||
I don't have a big endian computer to test a fix. Please reopen this bug if you have a patch! |
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.