From 1a92f0fbcc812ae1fc9e340cfeeda9129e3ff071 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 18 Jul 2019 01:15:44 -0400 Subject: main(): Accept image file name argument --- 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); -- cgit v0.9.1