PCE: Don't always make a new frame buffer when settings change

Fixes #1175
This commit is contained in:
alyosha-tas 2018-04-13 16:21:53 -04:00
parent 8e007490b5
commit ee49f147fb
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,7 @@
using BizHawk.Common;
using BizHawk.Emulation.Common;
using BizHawk.Emulation.Cores.Components.H6280;
using System;
namespace BizHawk.Emulation.Cores.PCEngine
{
@ -161,7 +162,6 @@ namespace BizHawk.Emulation.Cores.PCEngine
FramePitch = MultiResHack == 0 ? FrameWidth : MultiResHack;
//if (FrameBuffer.Length != FramePitch * FrameHeight)
//FrameBuffer = new int[FramePitch * FrameHeight];
FrameBuffer = new int[320 * 262];
break;
case VDW: // Vertical Display Word? - update framebuffer size
//FrameHeight = RequestedFrameHeight;
@ -172,7 +172,6 @@ namespace BizHawk.Emulation.Cores.PCEngine
FramePitch = MultiResHack;
//if (FrameBuffer.Length != FramePitch * FrameHeight)
//FrameBuffer = new int[FramePitch * FrameHeight];
FrameBuffer = new int[320 * 262];
break;
case LENR: // Initiate DMA transfer
if (!msbComplete) break;