GG: Add emulator support for showing clipped regions of GG games

Note, not yet hooked up to UI.
This commit is contained in:
beirich 2012-10-05 03:12:42 +00:00
parent 515fd82b32
commit 3d36887d60
2 changed files with 16 additions and 3 deletions

View File

@ -491,18 +491,30 @@ namespace BizHawk.Emulation.Consoles.Sega
public int[] GetVideoBuffer()
{
return mode == VdpMode.SMS ? FrameBuffer : GameGearFrameBuffer;
if (mode == VdpMode.SMS || Sms.CoreInputComm.GG_ShowClippedRegions)
return FrameBuffer;
return GameGearFrameBuffer;
}
public int VirtualWidth { get { return BufferWidth; } }
public int BufferWidth
{
get { return mode == VdpMode.SMS ? 256 : 160; }
get
{
if (mode == VdpMode.SMS || Sms.CoreInputComm.GG_ShowClippedRegions)
return 256;
return 160; // GameGear
}
}
public int BufferHeight
{
get { return mode == VdpMode.SMS ? FrameHeight : 144; }
get
{
if (mode == VdpMode.SMS || Sms.CoreInputComm.GG_ShowClippedRegions)
return FrameHeight;
return 144; // GameGear
}
}
public int BackgroundColor

View File

@ -8,6 +8,7 @@ namespace BizHawk
public bool NES_ShowBG, NES_ShowOBJ;
public bool PCE_ShowBG1, PCE_ShowOBJ1, PCE_ShowBG2, PCE_ShowOBJ2;
public bool SMS_ShowBG, SMS_ShowOBJ;
public bool GG_ShowClippedRegions;
public string SNES_FirmwaresPath;
public bool SNES_ShowBG1_0, SNES_ShowBG2_0, SNES_ShowBG3_0, SNES_ShowBG4_0;