Re: [AD] mouse pointer colors

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


Laurence Withers <lwithers@xxxxxxxxxx> wrote:
> In reply to Eric Botcazou <ebotcazou@xxxxxxxxxx>:
> >
> >Did I misunderstand Peter's suggestion ?
> >What do you mean, Peter, by "official behaviour" ? Strongly encouraged 
> >or hard-coded ? 
> 
> As I understand it, you would write something like (in the client code;
> this is not in the library):
> 
>   // ...
>   set_palette(my_new_palette);
>   set_mouse_sprite(0);
>   // ...

Yes, that is what I meant.  However, it doesn't work :-)

`set_mouse_sprite' does not generate the default arrow bitmap.  That
happens in the (misnamed) `_set_mouse_range' function, called by
`set_gfx_mode'.  So the mouse code gets linked in anyway if you set
a graphics mode.  I think we should change `set_mouse_sprite(NULL)'
so it _does_ generate the arrow bitmap.  Like in the attached patch.

-- 
tjaden@xxxxxxxxxx - http://www.psynet.net/tjaden/
CHEEDLE (CHEE dul), n.  The residue left on one's fingertips after
consuming a bag of Cheetos.  -- Rich Hall, "Sniglets"

Attachment: mousecol.diff.gz
Description: application/gunzip



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