all repos — mgba @ 2d37f8cd60c1d9306138856e71a76ddf065192e6

mGBA Game Boy Advance Emulator

SDL: Set default width and height
Jeffrey Pfau jeffrey@endrift.com
Sun, 09 Nov 2014 15:51:06 -0800
commit

2d37f8cd60c1d9306138856e71a76ddf065192e6

parent

f008c68761ceb297469f1aae6e174db19498b822

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/main.csrc/platform/sdl/main.c

@@ -11,6 +11,7 @@

#include "gba-thread.h" #include "gba.h" #include "gba-config.h" +#include "gba-video.h" #include "platform/commandline.h" #include "util/configuration.h"

@@ -39,6 +40,8 @@ GBAConfigInit(&config, PORT);

GBAConfigLoad(&config); struct GBAOptions opts = { + .width = VIDEO_HORIZONTAL_PIXELS, + .height = VIDEO_VERTICAL_PIXELS, .audioBuffers = 512, .videoSync = false, .audioSync = true,