summaryrefslogtreecommitdiff
path: root/test/testime.c
diff options
context:
space:
mode:
authorBob Pendleton <bob@pendleton.com>2009-09-19 15:22:33 +0000
committerBob Pendleton <bob@pendleton.com>2009-09-19 15:22:33 +0000
commit1dc16d423fe36eb13cb15feabebf7b8f441b3310 (patch)
tree5e404ecd72a4f357c9f1f6ac44bb443f1e134231 /test/testime.c
parentd4f133c2bf110ee558f88feeee4238a8337b669a (diff)
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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403825
Diffstat (limited to 'test/testime.c')
-rw-r--r--test/testime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testime.c b/test/testime.c
index d4a980ca..c9f6a53a 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