use the ancient zen art of copy paste to give libsnes the same aspect ratio fix that snes9x has.
This commit is contained in:
parent
beb25ce24f
commit
91e239e11f
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue