PDA

View Full Version : [PATCH] Win32 animated cursor



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

rombust
06-08-2010, 02:38 PM
Thanks.

Sorry, I have not applied the patch yet.

I wanted to first create a simple test, to check it works on my PC.

But, I'm a bit busy at the moment.

I shouldn't be too long though.

rombust
06-18-2010, 10:53 AM
Patch applied, many thanks.

A new test "Test/Display/AnimCursor" has been added. It turns the pointer into an animated pacman. (The graphics look poor, but that does not matter)