71 lines
1.4 KiB
C#
71 lines
1.4 KiB
C#
using System.Drawing;
|
|
|
|
using BizHawk.Common;
|
|
using BizHawk.Emulation.Common;
|
|
|
|
namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|
{
|
|
sealed public partial class Vic : IVideoProvider
|
|
{
|
|
int[] buf;
|
|
int bufHeight;
|
|
int bufLength;
|
|
int bufOffset;
|
|
int bufWidth;
|
|
int pixBufferSize = 12;
|
|
int[] pixBuffer;
|
|
int pixBufferIndex;
|
|
|
|
// palette
|
|
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 bufHeight; }
|
|
}
|
|
|
|
public int BufferWidth
|
|
{
|
|
get { return bufWidth; }
|
|
}
|
|
|
|
public int[] GetVideoBuffer()
|
|
{
|
|
return buf;
|
|
}
|
|
|
|
public int VirtualWidth
|
|
{
|
|
get { return bufWidth; }
|
|
}
|
|
|
|
public int VirtualHeight
|
|
{
|
|
get { return bufHeight; }
|
|
}
|
|
}
|
|
}
|