BizHawk/BizHawk.Emulation/Computers/Commodore64/MOS/Vic.VideoProvider.cs

62 lines
1.5 KiB
C#
Raw Normal View History

using System.Drawing;
namespace BizHawk.Emulation.Computers.Commodore64.MOS
{
sealed public partial class Vic : IVideoProvider
{
2013-08-19 03:42:40 +00:00
protected int[] buf;
protected int bufHeight;
protected int bufLength;
protected int bufOffset;
protected Point bufPoint;
protected Rectangle bufRect;
protected int bufWidth;
// palette
2013-08-19 03:42:40 +00:00
protected int[] palette =
{
Colors.ARGB(0x00, 0x00, 0x00),
Colors.ARGB(0xFF, 0xFF, 0xFF),
Colors.ARGB(0x68, 0x37, 0x2B),
Colors.ARGB(0x70, 0xA4, 0xB2),
Colors.ARGB(0x6F, 0x3D, 0x86),
Colors.ARGB(0x58, 0x8D, 0x43),
Colors.ARGB(0x35, 0x28, 0x79),
Colors.ARGB(0xB8, 0xC7, 0x6F),
Colors.ARGB(0x6F, 0x4F, 0x25),
Colors.ARGB(0x43, 0x39, 0x00),
Colors.ARGB(0x9A, 0x67, 0x59),
Colors.ARGB(0x44, 0x44, 0x44),
Colors.ARGB(0x6C, 0x6C, 0x6C),
Colors.ARGB(0x9A, 0xD2, 0x84),
Colors.ARGB(0x6C, 0x5E, 0xB5),
Colors.ARGB(0x95, 0x95, 0x95)
};
public int BackgroundColor
{
get { return Colors.ARGB(0, 0, 0); }
}
public int BufferHeight
{
get { return bufRect.Height; }
}
public int BufferWidth
{
get { return bufRect.Width; }
}
public int[] GetVideoBuffer()
{
return buf;
}
public int VirtualWidth
{
get { return bufRect.Width; }
}
}
}