Re: [AD] Deprecated functions and fix.sh

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


Jon Rafkind wrote:
 > > 	Why are the textprintf functions deprecated in the CVS version of
 > > allegro?
> > Because the old text functions depend on text_mode(), so the whole stuff is > not reentrant. >
Then what functions are we supposed to use? Textout cant take a variable arguement list like textprintf. Are you forcing us to do something like
char p[1000];
sprintf( p, "Info %s, number %d, something %s", str1, n1, str2 );
textout( bitmap, font, p, 30, 30, makecol(255,255,255) );
?

no, textout is also deprecated :-)
as the documentation says you should use textprintf_ex, textout_ex etc.





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