Commit 1dc16d42 authored by Bob Pendleton's avatar Bob Pendleton

I'm gussing that this was never compiled where TTF support was missing. As a...

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
parent d4f133c2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment