On 2006-01-17 12:10, Jeremy Sagan said:
I am using the same exact code that works fine on powerpc macs to
draw some color icons. PlotCIcon seems to clip the icon at the 32
pixel mark (as seen with pixie).
I filed <rdar://4305612> against PlotCIcon, it wasn't working well for
me either. They replied:
"Your 'cicn' resource data is invalid. The iconPMap has pixelSize =
cmpCount = cmpSize = 1, but pixelFormat = '1555'. A pixel format of
1555 means that the pixel size must be 2, not 1. If you change your
'cicn' to include valid data, it should work on both PowerPC and
Intel."
After some experimentation, I found:
- if I create a brand new 'cicn' resource using ResEdit, all is well
- if I create a brand new 'cicn' resource with Metrowerks
Constructor, I
end up with a resource corrupted in this way.
- Resorcerer cannot create/edit 'cicn' resources
Because of these facts, I am now using an 'icl8' resource.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada