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 210

Summary: Dock icons miscolored under Mac OS X on i386
Product: SDL Reporter: Ondra Hosek <white.timberwolf>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 1.2.9   
Hardware: PowerPC   
OS: Mac OS X 10.4 (Intel)   

Description Ondra Hosek 2006-05-01 10:35:08 UTC
I have been compiling an SDL-based game on an Intel Mac and have come across a problem with the colour palettes of dock images (effectively set with QZ_SetIcon). Whilst the PowerPC binary (as tested using the Rosetta emulator) displays the icons correctly, the Intel one seems to have problems with the palette.

I have tried swapping the arguments to SDL_CreateRGBSurface, unfortunately to no avail. My next guess would be the blitting process.

Links to cropped screenshots of the dock icons follow. The icon on the left is the correctly displayed one (from the Rosetta-emulated PPC binary), the icon on the right is the funky-palette Intel binary "interpretation".

RGB stripes: http://ondrasplayground.on.funpic.de/mac-x86-sdl-dock/rgbstripes.png

Colour spectra:
http://ondrasplayground.on.funpic.de/mac-x86-sdl-dock/fullspectra.png

The icons are stored as XPM files; the game uses a static-linked vanilla build of SDL-1.2.9.
Comment 1 Ondra Hosek 2006-05-01 10:37:47 UTC

*** This bug has been marked as a duplicate of 208 ***