Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
I'm gussing that this was never compiled where TTF support was missin…
Browse files Browse the repository at this point in the history
…g. As a result a call to SDL_GetError and a call to TTF_GetError were swapped.

I "fixed" it. That is it now compiles.
  • Loading branch information
pendletonrc committed Sep 19, 2009
1 parent f08136a commit a4a5213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testime.c
Expand Up @@ -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);
}

Expand All @@ -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
Expand Down

0 comments on commit a4a5213

Please sign in to comment.