GB: Fix SGB recording dimensions (fixes #1055)

This commit is contained in:
Vicki Pfau 2018-04-20 18:47:32 -07:00
parent e856f44274
commit 5a7d5766d0
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}