use the ancient zen art of copy paste to give libsnes the same aspect ratio fix that snes9x has.

This commit is contained in:
nattthebear 2017-06-11 07:15:51 -04:00
parent beb25ce24f
commit 91e239e11f
2 changed files with 10 additions and 2 deletions

View File

@ -4,9 +4,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
{
public partial class LibsnesCore : IVideoProvider
{
public int VirtualWidth => (int)(_videoWidth * 1.146);
public int VirtualWidth { get; private set; } = 293;
public int VirtualHeight => _videoHeight;
public int VirtualHeight { get; private set; } = 224;
public int BufferWidth => _videoWidth;

View File

@ -532,6 +532,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
}
}
}
VirtualHeight = BufferHeight;
VirtualWidth = BufferWidth;
if (VirtualHeight * 2 < VirtualWidth)
VirtualHeight *= 2;
if (VirtualHeight > 240)
VirtualWidth = 512;
VirtualWidth = (int)Math.Round(VirtualWidth * 1.146);
}
private void RefreshMemoryCallbacks(bool suppress)