1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00

Use size options for window

This commit is contained in:
Peter Evans 2017-12-20 17:08:19 -06:00
parent 609e3eea7c
commit 53db99f4fd

View File

@ -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);
}