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.
authorBob Pendleton <bob@pendleton.com>
Sat, 19 Sep 2009 15:22:33 +0000
changeset 32812d3a9f229ba1
parent 3280 00cace2d9080
child 3282 10a12f77f597
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
     1.1 --- a/test/testime.c	Sat Sep 19 13:29:40 2009 +0000
     1.2 +++ b/test/testime.c	Sat Sep 19 15:22:33 2009 +0000
     1.3 @@ -59,7 +59,7 @@
     1.4      SDL_putenv("SDL_VIDEO_WINDOW_POS=center");
     1.5      if (SDL_Init(SDL_INIT_VIDEO) < 0)
     1.6      {
     1.7 -        fprintf(stderr, "Unable to init SDL: %s\n", TTF_GetError());
     1.8 +        fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError());
     1.9          exit(-1);
    1.10      }
    1.11  
    1.12 @@ -70,7 +70,7 @@
    1.13      font = TTF_OpenFont(fontname, DEFAULT_PTSIZE);
    1.14      if (! font)
    1.15      {
    1.16 -        fprintf(stderr, "Failed to find font: %s\n", SDL_GetError());
    1.17 +        fprintf(stderr, "Failed to find font: %s\n", TTF_GetError());
    1.18          exit(-1);
    1.19      }
    1.20  #endif