if ((ch=='\b')&&(strlen(text)>0))
text[strlen(text)-1]='\0';
else if (ch!='\b')
- sprintf(text,"%s%c",text,ch);
+ sprintf(text+strlen(text),"%c",ch);
if (SFont_TextWidth2(Font,text)>PixelWidth) text[strlen(text)-1]='\0';
SDL_BlitSurface( Back, NULL, Dest, &rect);
SFont_PutString2(Dest, Font, x, y, text);
#ifdef HAVE_SDL_IMAGE
+=for comment
+
SDL_Surface *
NewFont ( filename )
char *filename
OUTPUT:
RETVAL
+=cut
+
void
UseFont ( surface )
SDL_Surface *surface