|
@@ -60,7 +60,7 @@ int main(int argc, char *argv[]) |
|
|
|
|
|
|
|
|
/* Render text to surface */ |
|
|
/* Render text to surface */ |
|
|
TTF_SetFontStyle(font, TTF_STYLE_NORMAL); |
|
|
TTF_SetFontStyle(font, TTF_STYLE_NORMAL); |
|
|
surface = TTF_RenderUTF8_Shaded(font, argv[3], fg, bg); |
|
|
|
|
|
|
|
|
surface = TTF_RenderUTF8_Shaded(font, text, fg, bg); |
|
|
if(!surface) |
|
|
if(!surface) |
|
|
{ |
|
|
{ |
|
|
fprintf(stderr, "surface rendering failed: %s\n", SDL_GetError()); |
|
|
fprintf(stderr, "surface rendering failed: %s\n", SDL_GetError()); |
|
|