huntercool
06-06-2010, 07:27 PM
This patch fixes some bugs in the windows animated cursor code.
There were two problems that I've discovered with the code:
1. A missing call to device.write for the IconDirectoryEntry header.
2. Negative bitmap height apparently doesn't work with cursors (tried on both win xp and 7). A call to bmp_image.flip_vertical() fixes this issue.
I've also filled out some other missing but potentially vital fields in the BITMAPINFOHEADER and ANIHeader structs.
This patch works on both windows XP sp3 32 and windows 7 64.
EDIT: patch for clanlib 2.2 SVN
There were two problems that I've discovered with the code:
1. A missing call to device.write for the IconDirectoryEntry header.
2. Negative bitmap height apparently doesn't work with cursors (tried on both win xp and 7). A call to bmp_image.flip_vertical() fixes this issue.
I've also filled out some other missing but potentially vital fields in the BITMAPINFOHEADER and ANIHeader structs.
This patch works on both windows XP sp3 32 and windows 7 64.
EDIT: patch for clanlib 2.2 SVN