Mercurial > sdl-ios-xcode
changeset 3281:2d3a9f229ba1
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.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Sat, 19 Sep 2009 15:22:33 +0000 |
parents | 00cace2d9080 |
children | 10a12f77f597 |
files | test/testime.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testime.c Sat Sep 19 13:29:40 2009 +0000 +++ b/test/testime.c Sat Sep 19 15:22:33 2009 +0000 @@ -59,7 +59,7 @@ 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 @@ 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