From cc3206a610c579920a5c15698ed732fd125f0fdc Mon Sep 17 00:00:00 2001 From: beirich Date: Sun, 24 Jul 2011 22:46:32 +0000 Subject: [PATCH] crash bugfix --- BizHawk.Emulation/Consoles/PC Engine/VDC.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BizHawk.Emulation/Consoles/PC Engine/VDC.cs b/BizHawk.Emulation/Consoles/PC Engine/VDC.cs index 3f04023f22..8fba0c3f3d 100644 --- a/BizHawk.Emulation/Consoles/PC Engine/VDC.cs +++ b/BizHawk.Emulation/Consoles/PC Engine/VDC.cs @@ -151,8 +151,7 @@ namespace BizHawk.Emulation.Consoles.TurboGrafx break; case HDR: // Horizontal Display Register - update framebuffer size FrameWidth = RequestedFrameWidth; - if (MultiResHack == 0) - FramePitch = MultiResHack; + FramePitch = MultiResHack == 0 ? FrameWidth : MultiResHack; if (FrameBuffer.Length != FramePitch * FrameHeight) FrameBuffer = new int[FramePitch * FrameHeight]; break;