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 - Dock icons miscolored under Mac OS X on i386
Summary: Dock icons miscolored under Mac OS X on i386
Status: RESOLVED DUPLICATE of bug 208
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.9
Hardware: PowerPC Mac OS X 10.4 (Intel)
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 10:35 UTC by Ondra Hosek
Modified: 2006-05-01 10:37 UTC (History)
0 users

See Also:


Attachments

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