diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -19,15 +19,22 @@ * along with fbcon2png. If not, see <http://www.gnu.org/licenses/>. */ +#include "text.h" #include "image.h" int -main(int __attribute__((unused)) argc, char __attribute__((unused)) **argv) +main(int argc, char **argv) { + struct text *text; struct image *image; + if (argc != 2) { + return 1; + } + + text = text_new(argv[1]); image = image_new("test.png"); - image_render(image); + image_render(image, text); image_destroy(&image); return 0; |