Re: [AD] set_mask_color

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


> While talking with a chap on IRC it came to my attention that there is
> no way to change the masking color for a given color depth. Now, I cant
> think of a whole lot of reasons to change the masking color but maybe
> someone( as this fellow tried to do ) would like to.

I think this has been discussed several times already. I'm sure there have
been long discussions about it on ACC at least.

> Is it worth it
> supply the user with a function with a set_mask_color() function or
> possibly add another parameter to all functions using the masking color,
> like masked_blit(), to change the masking color? Right now the masking
> color is #define'd for each color depth. All that would need to happen
> is to make this a global int.

I'm not so sure. Have you tried if this is true?
A lot of the blitting code is hand-optimized assembly. It may not react
properly if you change the define to an int.

> come to think of it, I think I could make some neat effects if I could
> change the masking color on the fly. What do yall think?

I don't think we want to change this for 4.2. Maybe for 4.3 when the
graphics subsystem is going to be changed anyway.
Depending on what others think. Personally, I'm pretty much indifferent to
this feature...

Evert




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