Re: [AD] mouse pointer colors |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Laurence Withers <lwithers@xxxxxxxxxx> wrote:
> In reply to Peter Wang <tjaden@xxxxxxxxxx>:
> >`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.
>
...
> by using the trick with a
> constructor function in mouse.c setting a function pointer in
> graphics.c; the constructor is only executed if mouse.o is linked in, so
> the function pointer is zero if mouse.o is not linked or non-zero if it
> is. I believe the MIDI functions work this way.
I like the constructor thing better. Care to do it?
> > I think we should change `set_mouse_sprite(NULL)'
> >so it _does_ generate the arrow bitmap. Like in the attached patch.
I've committed it, BTW. Eric, I got rid of the underscore :-)
--
SUPERFLUHOLES (sup ur FLEW holz), n. (a useless sniglet) The phony holes
on speaker covers, put there to match the ones that actually surround the
speaker. -- Rich Hall, "Sniglets"