Re: Re: [AD] Deprecated functions and fix.sh |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat, 28 Jun 2003, 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) );
> ?
Use *_ex version (see documentation, especially "API compatibility
information", section "Deprecated materials").
Have a nice day.
Stepan Roh