On 8/29/07, Juan Lang juan.lang@gmail.com wrote:
Like Henri already said, you really can't use globals for anih, ani_frames, and ani_frame_idx. These should be in a structure, and decodeRIFF should write into that structure, not into globals. The structure should then be associated with the icon.
They're temps.. I've added a comment to make that clear.
This may be obvious to other, but certainly not to me: what does 0x00030000 mean? You need to use symbolic constants here.
It's the version non-sense that Microsoft's api requires. You'll find that every call to this api and it's non-Ex variant have it.
Please don't include dead code.
Doh, sorry. Removed.
Trent