TSTHawk: Give a correct-ish aspect ratio for interlace mode

This commit is contained in:
nattthebear 2017-07-10 19:28:13 -04:00
parent a1bcb90ee6
commit c1e3411da3
1 changed files with 3 additions and 3 deletions

View File

@ -30,13 +30,13 @@ namespace BizHawk.Emulation.Cores.Consoles.NEC.PCFX
[CoreConstructor("PCFX")] [CoreConstructor("PCFX")]
public Tst(CoreComm comm, byte[] rom) public Tst(CoreComm comm, byte[] rom)
:base(comm, new Configuration()) : base(comm, new Configuration())
{ {
throw new InvalidOperationException("To load a PC-FX game, please load the CUE file and not the BIN file."); throw new InvalidOperationException("To load a PC-FX game, please load the CUE file and not the BIN file.");
} }
public Tst(CoreComm comm, IEnumerable<Disc> disks) public Tst(CoreComm comm, IEnumerable<Disc> disks)
:base(comm, new Configuration : base(comm, new Configuration
{ {
DefaultFpsNumerator = 7159091, DefaultFpsNumerator = 7159091,
DefaultFpsDenominator = 455 * 263, DefaultFpsDenominator = 455 * 263,
@ -78,7 +78,7 @@ namespace BizHawk.Emulation.Cores.Consoles.NEC.PCFX
ControllerDefinition = _controllerDeck.Definition; ControllerDefinition = _controllerDeck.Definition;
} }
public override int VirtualWidth => 293; public override int VirtualWidth => VirtualHeight > 240 ? 586 : 293;
protected override void LoadStateBinaryInternal(BinaryReader reader) protected override void LoadStateBinaryInternal(BinaryReader reader)
{ {