Atari 2600 - make background setting a color instead of number, in order to get a color picker in the settings dialog

This commit is contained in:
adelikat 2014-05-03 01:59:49 +00:00
parent 81ca8479f5
commit d978e2c629
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
using System;
using System.ComponentModel;
using System.Drawing;
using Newtonsoft.Json;
namespace BizHawk.Emulation.Cores.Atari.Atari2600
@ -88,7 +88,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
set { this._palBottomLine = Math.Min(310, Math.Max(value, 192)); }
}
public int BackgroundColor { get; set; }
public Color BackgroundColor { get; set; }
public A2600Settings Clone()
{
@ -106,7 +106,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
ShowMissle2 = true,
ShowBall = true,
ShowPlayfield = true,
BackgroundColor = 0
BackgroundColor = Color.Black
};
}
}

View File

@ -124,7 +124,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
public int BackgroundColor
{
get { return _core.Settings.BackgroundColor; }
get { return _core.Settings.BackgroundColor.ToArgb(); }
}
public int[] GetVideoBuffer()