all repos — mgba @ 5a7d5766d0131d6adee4f88e77950e3c37548d2f

mGBA Game Boy Advance Emulator

GB: Fix SGB recording dimensions (fixes #1055)
Vicki Pfau vi@endrift.com
Fri, 20 Apr 2018 18:47:32 -0700
commit

5a7d5766d0131d6adee4f88e77950e3c37548d2f

parent

e856f44274632d2bb50f2fc4128071a73fbdbead

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

jump to
M src/gb/core.csrc/gb/core.c

@@ -281,7 +281,9 @@ static void _GBCoreSetAVStream(struct mCore* core, struct mAVStream* stream) {

struct GB* gb = core->board; gb->stream = stream; if (stream && stream->videoDimensionsChanged) { - stream->videoDimensionsChanged(stream, GB_VIDEO_HORIZONTAL_PIXELS, GB_VIDEO_VERTICAL_PIXELS); + unsigned width, height; + core->desiredVideoDimensions(core, &width, &height); + stream->videoDimensionsChanged(stream, width, height); } }