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;
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;