From 53db99f4fd936ddf2bb07d72725d5768dbffd294 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Wed, 20 Dec 2017 17:08:19 -0600 Subject: [PATCH] Use size options for window --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a509b1b..f6376f5 100644 --- a/src/main.c +++ b/src/main.c @@ -103,7 +103,10 @@ main(int argc, char **argv) exit(1); } - if (!vm_screen_add_window(screen, 640, 480)) { + err = vm_screen_add_window(screen, + option_get_width(), + option_get_height()); + if (err != OK) { fprintf(stderr, "Window creation failed!\n"); exit(1); }