Permalink
Browse files

GB: Fix SGB recording dimensions (fixes #1055)

  • Loading branch information...
endrift committed Apr 21, 2018
1 parent e856f44 commit 5a7d5766d0131d6adee4f88e77950e3c37548d2f
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gb/core.c
View
@@ -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);
}
}

0 comments on commit 5a7d576

Please sign in to comment.