Results 1 to 3 of 3

Thread: [PATCH] Win32 animated cursor

  1. #1
    Lesser Knight
    Join Date
    Mar 2009
    Posts
    54

    Default [PATCH] Win32 animated cursor

    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
    Attached Files Attached Files

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    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.

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    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)

Similar Threads

  1. Animated gif causes crash.
    By jara in forum Novashell Game Creation System
    Replies: 1
    Last Post: 01-02-2010, 02:53 PM
  2. Cursor and Sprite question.
    By Eng C. Born in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 04-18-2009, 02:05 PM
  3. CL_Sprite mouse cursor
    By AlfaRed in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 02-11-2009, 09:29 AM
  4. resolution, mouse cursor, etc
    By Uhfgood in forum Novashell Game Creation System
    Replies: 1
    Last Post: 09-06-2007, 12:40 AM
  5. Animated Windows and Dialogs
    By AllenJB in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-20-2006, 04:28 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •