Merge pull request #1205 from Vilsol/master

Resize unattended video if zoom factor >1
This commit is contained in:
zeromus 2018-06-03 22:04:49 -04:00 committed by GitHub
commit 795fb0b887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -3160,6 +3160,12 @@ namespace BizHawk.Client.EmuHawk
aw = new AudioStretcher(aw);
}
if (unattended && Global.Config.TargetZoomFactor > 1)
{
_avwriterResizew = Global.Config.TargetZoomFactor * _currentVideoProvider.BufferWidth;
_avwriterResizeh = Global.Config.TargetZoomFactor * _currentVideoProvider.BufferHeight;
}
aw.SetMovieParameters(Emulator.VsyncNumerator(), Emulator.VsyncDenominator());
if (_avwriterResizew > 0 && _avwriterResizeh > 0)
{