diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 01:15:44 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 01:15:44 (EDT) |
commit | 1a92f0fbcc812ae1fc9e340cfeeda9129e3ff071 (patch) | |
tree | abb712df744f6a88f99a25929c6f1d653df4dfd6 | |
parent | 9875de422d9878b4fbc0e8a8dc408bf1b3a91434 (diff) |
main(): Accept image file name argument
-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); |