From e10d28918d326ed0bdd4c04cb7c1a4935c89f0ea Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 9 Nov 2014 15:56:09 -0800 Subject: [PATCH] SDL: Fix command line graphics arguments --- src/platform/sdl/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/sdl/main.c b/src/platform/sdl/main.c index fe35b082e..e39d56de4 100644 --- a/src/platform/sdl/main.c +++ b/src/platform/sdl/main.c @@ -53,8 +53,6 @@ int main(int argc, char** argv) { struct SubParser subparser; - GBAConfigMap(&config, &opts); - initParserForGraphics(&subparser, &graphicsOpts); if (!parseArguments(&args, &config, argc, argv, &subparser)) { usage(argv[0], subparser.usage); @@ -64,6 +62,8 @@ int main(int argc, char** argv) { return 1; } + GBAConfigMap(&config, &opts); + renderer.viewportWidth = opts.width; renderer.viewportHeight = opts.height; #if SDL_VERSION_ATLEAST(2, 0, 0)