summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick 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)
commit1a92f0fbcc812ae1fc9e340cfeeda9129e3ff071 (patch)
treeabb712df744f6a88f99a25929c6f1d653df4dfd6
parent9875de422d9878b4fbc0e8a8dc408bf1b3a91434 (diff)
main(): Accept image file name argument
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9fb84e1..d16197a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);