PCE: Don't always make a new frame buffer when settings change
Fixes #1175
This commit is contained in:
parent
8e007490b5
commit
ee49f147fb
|
@ -1,6 +1,7 @@
|
||||||
using BizHawk.Common;
|
using BizHawk.Common;
|
||||||
using BizHawk.Emulation.Common;
|
using BizHawk.Emulation.Common;
|
||||||
using BizHawk.Emulation.Cores.Components.H6280;
|
using BizHawk.Emulation.Cores.Components.H6280;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.PCEngine
|
namespace BizHawk.Emulation.Cores.PCEngine
|
||||||
{
|
{
|
||||||
|
@ -161,7 +162,6 @@ namespace BizHawk.Emulation.Cores.PCEngine
|
||||||
FramePitch = MultiResHack == 0 ? FrameWidth : MultiResHack;
|
FramePitch = MultiResHack == 0 ? FrameWidth : MultiResHack;
|
||||||
//if (FrameBuffer.Length != FramePitch * FrameHeight)
|
//if (FrameBuffer.Length != FramePitch * FrameHeight)
|
||||||
//FrameBuffer = new int[FramePitch * FrameHeight];
|
//FrameBuffer = new int[FramePitch * FrameHeight];
|
||||||
FrameBuffer = new int[320 * 262];
|
|
||||||
break;
|
break;
|
||||||
case VDW: // Vertical Display Word? - update framebuffer size
|
case VDW: // Vertical Display Word? - update framebuffer size
|
||||||
//FrameHeight = RequestedFrameHeight;
|
//FrameHeight = RequestedFrameHeight;
|
||||||
|
@ -172,7 +172,6 @@ namespace BizHawk.Emulation.Cores.PCEngine
|
||||||
FramePitch = MultiResHack;
|
FramePitch = MultiResHack;
|
||||||
//if (FrameBuffer.Length != FramePitch * FrameHeight)
|
//if (FrameBuffer.Length != FramePitch * FrameHeight)
|
||||||
//FrameBuffer = new int[FramePitch * FrameHeight];
|
//FrameBuffer = new int[FramePitch * FrameHeight];
|
||||||
FrameBuffer = new int[320 * 262];
|
|
||||||
break;
|
break;
|
||||||
case LENR: // Initiate DMA transfer
|
case LENR: // Initiate DMA transfer
|
||||||
if (!msbComplete) break;
|
if (!msbComplete) break;
|
||||||
|
|
Loading…
Reference in New Issue