2017-04-25 16:42:03 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|
|
|
|
{
|
|
|
|
|
public partial class MGBAHawk : IVideoProvider
|
|
|
|
|
{
|
|
|
|
|
public int[] GetVideoBuffer()
|
|
|
|
|
{
|
2017-04-25 17:00:50 +00:00
|
|
|
|
return _videobuff;
|
2017-04-25 16:42:03 +00:00
|
|
|
|
}
|
2017-04-25 17:00:50 +00:00
|
|
|
|
|
|
|
|
|
public int VirtualWidth => 240;
|
|
|
|
|
public int VirtualHeight => 160;
|
|
|
|
|
|
|
|
|
|
public int BufferWidth => 240;
|
|
|
|
|
public int BufferHeight => 160;
|
|
|
|
|
|
|
|
|
|
public int BackgroundColor => unchecked((int)0xff000000);
|
|
|
|
|
|
2017-05-05 16:21:37 +00:00
|
|
|
|
|
2017-05-05 16:25:38 +00:00
|
|
|
|
public int VsyncNumerator => 262144;
|
2017-05-05 16:21:37 +00:00
|
|
|
|
|
2017-05-05 16:25:38 +00:00
|
|
|
|
public int VsyncDenominator => 4389;
|
2017-05-05 16:21:37 +00:00
|
|
|
|
|
2017-04-25 17:00:50 +00:00
|
|
|
|
private readonly int[] _videobuff = new int[240 * 160];
|
2017-04-25 16:42:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|