From 7996f5dfbc86fe60d32c1506c19ea229574e0bc0 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Sat, 29 Jul 2017 08:24:03 -0400 Subject: [PATCH] snes9x: Don't set virtual size of 0 on frame 0 --- .../Consoles/Nintendo/SNES9X/Snes9x.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs index cf81e5edda..e71c8e995b 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs @@ -297,21 +297,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES9X return new LibWaterboxCore.FrameInfo(); } - protected override void FrameAdvancePost() - { - _virtualHeight = BufferHeight; - _virtualWidth = BufferWidth; - if (_virtualHeight * 2 < _virtualWidth) - _virtualHeight *= 2; - if (_virtualHeight > 240) - _virtualWidth = 512; - _virtualWidth = (int)Math.Round(_virtualWidth * 1.146); - } - private int _virtualWidth; - private int _virtualHeight; - public override int VirtualWidth => _virtualWidth; - public override int VirtualHeight => _virtualHeight; + public override int VirtualWidth => BufferWidth == 256 && BufferHeight <= 240 ? 293 : 587; + public override int VirtualHeight => BufferHeight <= 240 && BufferWidth == 512 ? BufferHeight * 2 : BufferHeight; #region IStatable