From a4a5213fd4f00c73081422e7edab9609c4558b44 Mon Sep 17 00:00:00 2001 From: Bob Pendleton Date: Sat, 19 Sep 2009 15:22:33 +0000 Subject: [PATCH] I'm gussing that this was never compiled where TTF support was missing. As a result a call to SDL_GetError and a call to TTF_GetError were swapped. I "fixed" it. That is it now compiles. --- test/testime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testime.c b/test/testime.c index d4a980cae..c9f6a53a7 100644 --- a/test/testime.c +++ b/test/testime.c @@ -59,7 +59,7 @@ void InitVideo(int argc, char *argv[]) SDL_putenv("SDL_VIDEO_WINDOW_POS=center"); if (SDL_Init(SDL_INIT_VIDEO) < 0) { - fprintf(stderr, "Unable to init SDL: %s\n", TTF_GetError()); + fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError()); exit(-1); } @@ -70,7 +70,7 @@ void InitVideo(int argc, char *argv[]) font = TTF_OpenFont(fontname, DEFAULT_PTSIZE); if (! font) { - fprintf(stderr, "Failed to find font: %s\n", SDL_GetError()); + fprintf(stderr, "Failed to find font: %s\n", TTF_GetError()); exit(-1); } #endif