psx - setup a default framebuffer before emulating a frame, so the frontend doesnt freak out

This commit is contained in:
zeromus 2014-12-12 00:40:15 +00:00
parent ba3a6ca817
commit b1fa5b64fd
1 changed files with 5 additions and 0 deletions

View File

@ -230,6 +230,11 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
VirtualWidth = 800;
VirtualHeight = 480;
//set a default framebuffer
BufferWidth = VirtualWidth;
BufferHeight = VirtualHeight;
frameBuffer = new int[BufferWidth*BufferHeight];
if (disc != null)
{
OctoshockDll.shock_OpenTray(psx);