Re: [AD] Request: adding textout_ex(), which takes bg color as parameter

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


> I would like to add a "textout_ex()" function, which takes the bg color
> as a parameter rather than reading it from the global "_textmode"
> variable.

Fine with me, for all the variants too.

Move all the superseded functions to alcompat.h, make them inlined
(_textmode is an exported internal) and document them as deprecated in the
docs. Document text_mode() as deprecated too.

I've attached a patch that does so for the deprecated file_select()
function.

> The reason for doing this is twofold: firstly, it simplifies things
> which want to write text with their own background color, independent
> of the current user setting (eg. the GUI), and second, it removes any
> semblance of state from the text renderer, so we can use it in a
> multithreaded environment (which is what I want to do in my GUI).

Yes.

--
Eric Botcazou

Attachment: fsel.diff
Description: Binary data



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