Re: [AD] Using system mouse cursor

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> It was my understanding that Allegro was supposed to use the
> hardware/system cursor where possible anyway, as long as it could
> properly change it.

I dunno.

> How hard would it be to get Windows, X, OSX, etc to
> change its mouse cursor to the bitmap passed to set_mouse_sprite?

I don't think it's particularly difficult, but it's my understanding that
hardware cursors are limited to b&w.  Since set_mouse_sprite() only
accepts bitmaps of higher colour depths, I guess each call to
set_mouse_sprite() will need to determine if the given bitmap can be
converted to monochrome.  It might be a bit expensive, is all.  If that's
a problem we could introduce a new function that is like
set_mouse_sprite() but always does the conversion to monochrome, so it
doesn't have to guess what the user wants.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/