Re: [AD] Mouse cusor documentation |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sunday 03 October 2004 18:53, Elias Pschernig wrote:
> Well, you save commands with my way in a double buffered app:
>
> enable_hardware_cursor()
> while(1)
> if (no hw cursor) draw_sprite
>
> vs.
>
> enable_hardware_cursor()
> show_mouse(screen)
> if (no hw cursor)
> show_mouse(NULL)
> while(1)
> if (no hw cursor) draw_sprite
Why are you using draw_sprite() to draw the mouse in a double buffered app?
I always use show_mouse() and this works fine... why this special case?
> But maybe the function I want should better be called
> show_hardware_cursor.
Yes - but I don't think we need an extra function for this (my original
patch for system cursors had one though, as you may recall).
Evert