2017-04-24 16:51:59 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Atari.Lynx
|
|
|
|
|
{
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public partial class Lynx : IVideoProvider
|
|
|
|
|
{
|
2017-04-24 16:51:59 +00:00
|
|
|
|
private const int Width = 160;
|
|
|
|
|
private const int Height = 102;
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-24 16:51:59 +00:00
|
|
|
|
private readonly int[] _videobuff = new int[Width * Height];
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public int[] GetVideoBuffer()
|
|
|
|
|
{
|
2017-04-24 16:51:59 +00:00
|
|
|
|
return _videobuff;
|
2017-04-15 20:37:30 +00:00
|
|
|
|
}
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-24 16:51:59 +00:00
|
|
|
|
public int VirtualWidth => BufferWidth;
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-24 16:51:59 +00:00
|
|
|
|
public int VirtualHeight => BufferHeight;
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-24 16:51:59 +00:00
|
|
|
|
public int BufferWidth { get; }
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-24 16:51:59 +00:00
|
|
|
|
public int BufferHeight { get; }
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-24 16:51:59 +00:00
|
|
|
|
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 => 16000000; // 16.00 mhz refclock
|
2017-05-05 16:21:37 +00:00
|
|
|
|
|
2017-05-05 16:25:38 +00:00
|
|
|
|
public int VsyncDenominator => 16 * 105 * 159;
|
2017-04-15 20:37:30 +00:00
|
|
|
|
}
|
2015-01-15 14:04:18 +00:00
|
|
|
|
}
|