Fixed the pod path in archive
[sdlgit/SDL_perl.git] / src / SFont.xs
index 2839a67..017987b 100644 (file)
@@ -225,7 +225,7 @@ void SFont_InternalInput( SDL_Surface *Dest, SFont_FontInfo *Font, int x, int y,
                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);
@@ -272,6 +272,8 @@ PROTOTYPES : DISABLE
 
 #ifdef HAVE_SDL_IMAGE
 
+=for comment
+
 SDL_Surface *
 NewFont ( filename )
        char *filename
@@ -281,6 +283,8 @@ NewFont ( filename )
        OUTPUT:
                RETVAL
 
+=cut
+
 void
 UseFont ( surface )
        SDL_Surface *surface