update audiod help text
[paraslash.git] / SFont.c
diff --git a/SFont.c b/SFont.c
index 407ef9906462ad2836a2f7f956c0d1c81eba27b4..8a078c9f26e17d928844004e756abf998f8a6ad1 100644 (file)
--- a/SFont.c
+++ b/SFont.c
@@ -16,7 +16,7 @@
  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  */
 
-/*Modified 2003 by Andre Noll */
+/*Modified 2003, 2006 by Andre Noll */
 
 #include <SDL/SDL.h>
 #include "SFont.h"
@@ -110,7 +110,7 @@ void InitFont(SDL_Surface * Font)
 
 
 void PutString2(SDL_Surface * Surface, SFont_FontInfo * Font, int x, int y,
-               char *text)
+               const char *text)
 {
        int ofs;
        int i = 0;
@@ -141,13 +141,7 @@ void PutString2(SDL_Surface * Surface, SFont_FontInfo * Font, int x, int y,
                }
        }
 }
-#if 0
-void PutString(SDL_Surface * Surface, int x, int y, char *text)
-{
-       PutString2(Surface, &InternalFont, x, y, text);
-}
 
-#endif
 int TextWidth2(SFont_FontInfo * Font, char *text)
 {
        int ofs = 0;
@@ -166,29 +160,8 @@ int TextWidth2(SFont_FontInfo * Font, char *text)
        return x;
 }
 
-#if 0
-int TextWidth(char *text)
-{
-       return TextWidth2(&InternalFont, text);
-}
-#endif
-
-void XCenteredString2(SDL_Surface * Surface, SFont_FontInfo * Font, int y,
-                     char *text)
-{
-       PutString2(Surface, Font, Surface->w / 2 - TextWidth2(Font, text) / 2,
-                  y, text);
-}
-
-#if 0
-void XCenteredString(SDL_Surface * Surface, int y, char *text)
-{
-       XCenteredString2(Surface, &InternalFont, y, text);
-}
-#endif
-
 void SFont_InternalInput(SDL_Surface * Dest, SFont_FontInfo * Font, int x,
-                        int y, int PixelWidth, char *text)
+               int y, int PixelWidth, char *text)
 {
        SDL_Event event;
        int ch = -1, blink = 0;