Re: [AD] SF.net SVN: alleg:[12053] allegro/branches/4.9/examples/nihgui.cpp

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


On 2009-04-11, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> Peter Wang wrote:
> > I think we should take the substring parameters off al_draw_text() and
> > expose a version of it that takes a ustr instead.  If you need to draw a
> > substring you can wrap it in a ustr quite easily.
> > 
> >     void al_draw_text(const ALLEGRO_FONT *font, float x, float y, int flags,
> >        const char *text);
> > 
> >     void al_draw_ustr(const ALLEGRO_FONT *font, float x, float y, int flags,
> >        const ALLEGRO_USTR *text);
> > 
> > The people who didn't like the count parameter should be happy as well
> > (that includes me after the count parameter became start/end).
> 
> Yes. Previously I always thought you could just use al_draw_text(..., 
> al_cstr(ustr)) but apparently that's not true for sub-strings (because 
> there is no terminating 0). So I'd prefer this now as well.

I'll let you take care of it ;)

Peter





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