crash bugfix

This commit is contained in:
beirich 2011-07-24 22:46:32 +00:00
parent 695625d63b
commit cc3206a610
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ namespace BizHawk.Emulation.Consoles.TurboGrafx
break; break;
case HDR: // Horizontal Display Register - update framebuffer size case HDR: // Horizontal Display Register - update framebuffer size
FrameWidth = RequestedFrameWidth; FrameWidth = RequestedFrameWidth;
if (MultiResHack == 0) FramePitch = MultiResHack == 0 ? FrameWidth : MultiResHack;
FramePitch = MultiResHack;
if (FrameBuffer.Length != FramePitch * FrameHeight) if (FrameBuffer.Length != FramePitch * FrameHeight)
FrameBuffer = new int[FramePitch * FrameHeight]; FrameBuffer = new int[FramePitch * FrameHeight];
break; break;