From db8b051b0089a36ba9c53591020d334bb1751dcd Mon Sep 17 00:00:00 2001 From: Vilsol Date: Sat, 2 Jun 2018 23:18:45 +0300 Subject: [PATCH] Resize unattended video if zoom factor >1 --- BizHawk.Client.EmuHawk/MainForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 25a6409e01..efbf1e9f63 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -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) {