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:
parent
81ca8479f5
commit
d978e2c629
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue