SDL: Fix command line graphics arguments
Jeffrey Pfau jeffrey@endrift.com
Sun, 09 Nov 2014 15:56:09 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/platform/sdl/main.c
→
src/platform/sdl/main.c
@@ -53,8 +53,6 @@ struct GraphicsOpts graphicsOpts = {};
struct SubParser subparser; - GBAConfigMap(&config, &opts); - initParserForGraphics(&subparser, &graphicsOpts); if (!parseArguments(&args, &config, argc, argv, &subparser)) { usage(argv[0], subparser.usage);@@ -63,6 +61,8 @@ GBAConfigFreeOpts(&opts);
GBAConfigDeinit(&config); return 1; } + + GBAConfigMap(&config, &opts); renderer.viewportWidth = opts.width; renderer.viewportHeight = opts.height;