[Lazarus] Carbon PPC: Blue-ish images from ImageList

mitya boyarintsev mityasoft at gmail.com
Thu Oct 23 16:44:44 CEST 2008


The bug is probably caused by internal image translation and processing.

If images are processed as 4 or 2 byte integers (Longword, word), not as a
sequence of bytes, the  code is simply not cross platform (not cross CPU at
least). because PPC is big-endian CPU, while Intel (that is the primary for
LCL component)s) in little-endian. Pixels can be placed in different oreder
not RGB, but BGR (or vice versa)

AFAIK, Mac OS provides routines for CGImages to handle this cross-CPU
situation. Intel-based images can be processed correclty on PPC. So little
fix would be required for Cabon wigdetset.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081023/b03f7953/attachment-0007.html>


More information about the Lazarus mailing list