diff options
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,7 +30,7 @@ main(int argc, char **argv) struct text *text; struct image *image; - if (argc != 3) { + if (argc != 4) { return 1; } @@ -38,7 +38,7 @@ main(int argc, char **argv) text = text_new(argv[2]); text_set_width(text, 80); text_set_height(text, 25); - image = image_new("test.png"); + image = image_new(argv[3]); image_render(image, text, font); text_destroy(&text); image_destroy(&image); |