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

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 27 September 2002 13:57, Eric Botcazou wrote:
> 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.

Wow, that turned out to be a lot of work. Patch attached. Here is a 
quick runthrough of the changes:
 - _textmode and text_mode() moved to alcompat.h
 - all textout()-style functions moved to alcompat.h
 - added new textout_ex()-style functions
 - rewrote old textout() functions to use textout_ex() functions
 - added documentation for new textout_ex() functions
 - marked text_mode() and old textout() functions as deprecated in docs
 - changed GFX_VTABLE structure because draw_character() and 
   draw_glyph() needed a 'bg' parameter added
 - updated all the vtables I could find which implemented either 
   draw_character() or draw_glyph().
 - removed the inline 'draw_character' function, as it's not used 
   anywhere and was broken.

Still to do, but this can come later (everything works fine as it is 
now):
 - convert the gui code to use this patch,
 - convert the tools/examples to use textout_ex().

Bye for now,
- -- 
Laurence Withers,  lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9lHefUdhclgSmRuoRAigiAJ9U0o+0JjlFe21njoBkTM7DYnDvOACcClEM
pMIl+h5s+8c1Z59AYX+Do8s=
=zaIR
-----END PGP SIGNATURE-----

Attachment: textout_ex.diff.gz
Description: textout_ex implementation



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