2013-04-14 20:39:19 +00:00
|
|
|
|
using System.Drawing;
|
2012-11-27 05:11:40 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
|
|
|
|
{
|
2013-08-24 15:21:51 +00:00
|
|
|
|
sealed public partial class Vic : IVideoProvider
|
2012-11-27 05:11:40 +00:00
|
|
|
|
{
|
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;
|
2012-11-27 05:11:40 +00:00
|
|
|
|
|
|
|
|
|
// palette
|
2013-08-19 03:42:40 +00:00
|
|
|
|
protected int[] palette =
|
2012-11-27 05:11:40 +00:00
|
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
{
|
2012-12-03 06:08:12 +00:00
|
|
|
|
get { return bufRect.Height; }
|
2012-11-27 05:11:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int BufferWidth
|
|
|
|
|
{
|
2012-12-03 06:08:12 +00:00
|
|
|
|
get { return bufRect.Width; }
|
2012-11-27 05:11:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int[] GetVideoBuffer()
|
|
|
|
|
{
|
|
|
|
|
return buf;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int VirtualWidth
|
|
|
|
|
{
|
2012-12-03 06:08:12 +00:00
|
|
|
|
get { return bufRect.Width; }
|
2012-11-27 05:11:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|