Re: [AD] Using system mouse cursor

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


> Peter Wang wrote:
>>>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.
>
> Well, the hardware cursor anyway.. though I think this should be applied
> to system cursors as well (pretty much anywhere when Allegro doesn't
> have to worry about drawing it).

Oh right.  I was only thinking of hardware cursors.

>
>> I don't think it's particularly difficult, but it's my understanding
>> that
>> hardware cursors are limited to b&w.
>
> I doubt that's true anymore. In any case, as long as the OS can handle
> the mouse graphic as-is for us, wouldn't it be best to let it? Even if
> it ends up using a non-hardware cursor to draw it (like Win9x), we
> wouldn't have to worry about drawing it in an timer. I know Windows can
> accept multi-colored cursors.. I've even seen Windows cursors that
> invert the colors on the screen where the mouse pointer is. I believe X
> can too.

Maybe.  I don't think I've seen non-monochrome cursors in X.  A useful
thing to look at is GDK's cursor API:

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Cursors.html



>
> - Kitty Cat
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
>





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