all repos — mgba @ e10d28918d326ed0bdd4c04cb7c1a4935c89f0ea

mGBA Game Boy Advance Emulator

SDL: Fix command line graphics arguments
Jeffrey Pfau jeffrey@endrift.com
Sun, 09 Nov 2014 15:56:09 -0800
commit

e10d28918d326ed0bdd4c04cb7c1a4935c89f0ea

parent

2d37f8cd60c1d9306138856e71a76ddf065192e6

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/sdl/main.csrc/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;