http://bugs.winehq.org/show_bug.cgi?id=25778
Charles Davis cdavis@mines.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cdavis@mines.edu
--- Comment #4 from Charles Davis cdavis@mines.edu 2011-01-20 19:18:32 CST --- (In reply to comment #3)
don't know what kind of tweaks might be required to get it to work on older Mac OS X.
I can think of at least two.
- Use ImageIO, a subframework of ApplicationServices that supports reading and writing a variety of image formats, including icns. ImageIO is available on Mac OS X 10.4; Tiger was in fact the first version to have ImageIO. (As a matter of fact, I wouldn't mind if WindowsCodecs used ImageIO for everything on Mac OS! Then we wouldn't need libjpeg, libpng, etc...) - Declare the constants ourselves. The constants follow a pattern. 16x16 is 'ic04', 32x32 is 'ic05', and so on, all the way up to 512x512, which is 'ic09'. If you don't believe me, look up the constants in 10.5/10.6's OSServices and see for yourself. Of course, I have to wonder if Tiger even supports loading 16x16 images from an icns file. In that case, there are other constants (the 'Mini', 'Small', 'Large', and 'Huge' icon types) we can use.