X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2FSFont.xs;h=017987b29b975423cbee9efcc4558aa4f1951ab6;hb=e4259ddb8b51b7d79840a1d57fb69249cdbfafed;hp=2bd989967647c9b493118ea029057b44ece6f7da;hpb=7b6a53a1f5064ca5b8ab0243f7bcf6209e6bf5a4;p=sdlgit%2FSDL_perl.git diff --git a/src/SFont.xs b/src/SFont.xs index 2bd9899..017987b 100644 --- a/src/SFont.xs +++ b/src/SFont.xs @@ -44,8 +44,8 @@ #define HAVE_TLS_CONTEXT #endif -#include "../defines.h" -#include "../SFont.h" +#include "../../src/defines.h" +#include "../../src/SFont.h" #ifdef HAVE_SDL_IMAGE #include @@ -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