2015-01-15 14:04:18 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Atari.Lynx
|
|
|
|
|
{
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public partial class Lynx : IVideoProvider
|
|
|
|
|
{
|
|
|
|
|
private const int WIDTH = 160;
|
|
|
|
|
private const int HEIGHT = 102;
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
private 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()
|
|
|
|
|
{
|
|
|
|
|
return videobuff;
|
|
|
|
|
}
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public int VirtualWidth
|
|
|
|
|
{
|
|
|
|
|
get { return BufferWidth; }
|
|
|
|
|
}
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public int VirtualHeight
|
|
|
|
|
{
|
|
|
|
|
get { return BufferHeight; }
|
|
|
|
|
}
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public int BufferWidth { get; private set; }
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public int BufferHeight { get; private set; }
|
2015-01-15 14:04:18 +00:00
|
|
|
|
|
2017-04-15 20:37:30 +00:00
|
|
|
|
public int BackgroundColor
|
|
|
|
|
{
|
|
|
|
|
get { return unchecked((int)0xff000000); }
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-01-15 14:04:18 +00:00
|
|
|
|
}
|