[AD] Re: Mouse colors

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


> > if you want a different mouse sprite, you can use Allegro's
> > set_mouse_sprite there's no need to change it in the main library ;)
>
> > But what if you don't want to set a different cursor, just a different
> > palette? Javier, you could even add a function to set the mouse colors
> > to whatever the user prefers (eg. set_mouse_sprite_colors or something).

ok, i've added a function:

/* set_mouse_default_colors:
 *  Changes the default mouse pointer colors. Set enable to false to use
 *  the defaults of allegro.
 */
void set_mouse_default_colors(int enable, int col1, int col2)

however, can someone else add it to the docs?

> However, I agree with Javier. His patch would make the truecolor modes
> consistent with the default 8bpp palette and with the Windows desktop too.

also included in this patch as well (>8bpp modes will have white arrows)
but also note that if the desktop_palette (the one of the old-atari ;) is
set, the mouse in
8bpp will still be (altough with default ibm one (or none set) it will be
white) -- this is as it has
been all the time, so, iow: no changes in 8bpp, changes in >8bpp (so dont
complain that 8bpp
now have black arrows in screen mode seleciton of the examples for example
because it has
been black all the time ;)

oh, yeah. my editor has very much problems following allegro tab-indent. can
someone fix their indent before commiting?

thnx


Attachment: mouse.c.dif
Description: video/dv

Attachment: allegro.h.dif
Description: video/dv



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