GG: Add emulator support for showing clipped regions of GG games
Note, not yet hooked up to UI.
This commit is contained in:
parent
515fd82b32
commit
3d36887d60
|
@ -491,18 +491,30 @@ namespace BizHawk.Emulation.Consoles.Sega
|
||||||
|
|
||||||
public int[] GetVideoBuffer()
|
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 VirtualWidth { get { return BufferWidth; } }
|
||||||
public int 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
|
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
|
public int BackgroundColor
|
||||||
|
|
|
@ -8,6 +8,7 @@ namespace BizHawk
|
||||||
public bool NES_ShowBG, NES_ShowOBJ;
|
public bool NES_ShowBG, NES_ShowOBJ;
|
||||||
public bool PCE_ShowBG1, PCE_ShowOBJ1, PCE_ShowBG2, PCE_ShowOBJ2;
|
public bool PCE_ShowBG1, PCE_ShowOBJ1, PCE_ShowBG2, PCE_ShowOBJ2;
|
||||||
public bool SMS_ShowBG, SMS_ShowOBJ;
|
public bool SMS_ShowBG, SMS_ShowOBJ;
|
||||||
|
public bool GG_ShowClippedRegions;
|
||||||
|
|
||||||
public string SNES_FirmwaresPath;
|
public string SNES_FirmwaresPath;
|
||||||
public bool SNES_ShowBG1_0, SNES_ShowBG2_0, SNES_ShowBG3_0, SNES_ShowBG4_0;
|
public bool SNES_ShowBG1_0, SNES_ShowBG2_0, SNES_ShowBG3_0, SNES_ShowBG4_0;
|
||||||
|
|
Loading…
Reference in New Issue