Added control pad to Kempston interface
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Core.Io
|
||||
private int _ulaFrameCount = 0;
|
||||
|
||||
// The hardware color palette belongs to the ULA, not the Windows Form!
|
||||
private readonly int[] SpectrumColors = new int[]
|
||||
private readonly int[] SpectrumColours = new int[]
|
||||
{
|
||||
unchecked((int)0xFF000000), unchecked((int)0xFF0000D7),
|
||||
unchecked((int)0xFFD70000), unchecked((int)0xFFD700D7),
|
||||
@@ -59,7 +59,7 @@ namespace Core.Io
|
||||
|
||||
// 2. Calculate our visual Y coordinate (0 to 255) for the bitmap array
|
||||
int renderY = scanline - 32;
|
||||
int currentBorderColor = SpectrumColors[_simpleIoBus.BorderColorIndex];
|
||||
int currentBorderColor = SpectrumColours[_simpleIoBus.BorderColourIndex];
|
||||
|
||||
// --- Are we in the Top or Bottom Border? ---
|
||||
if (scanline < 64 || scanline > 255)
|
||||
@@ -102,8 +102,8 @@ namespace Core.Io
|
||||
int brightOffset = (attr & 0x40) != 0 ? 8 : 0;
|
||||
bool isFlashSet = (attr & 0x80) != 0;
|
||||
|
||||
int inkColor = SpectrumColors[ink + brightOffset];
|
||||
int paperColor = SpectrumColors[paper + brightOffset];
|
||||
int inkColor = SpectrumColours[ink + brightOffset];
|
||||
int paperColor = SpectrumColours[paper + brightOffset];
|
||||
|
||||
if (isFlashSet && invertFlashPhase)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user