SNES Graphics Debugger - remember user's backdrop settings
This commit is contained in:
parent
41780b067f
commit
1b0c410cc7
|
@ -395,6 +395,8 @@ namespace BizHawk.MultiClient
|
||||||
public int SNESGraphicsDebuggerWndx = -1;
|
public int SNESGraphicsDebuggerWndx = -1;
|
||||||
public int SNESGraphicsDebuggerWndy = -1;
|
public int SNESGraphicsDebuggerWndy = -1;
|
||||||
public int SNESGraphicsDebuggerRefreshRate = 4;
|
public int SNESGraphicsDebuggerRefreshRate = 4;
|
||||||
|
public bool SNESGraphicsUseUserBackdropColor = false;
|
||||||
|
public int SNESGraphicsUserBackdropColor = -1;
|
||||||
|
|
||||||
// SNES Graphics settings
|
// SNES Graphics settings
|
||||||
//bsnes allows the layers to be enabled for each priority level.
|
//bsnes allows the layers to be enabled for each priority level.
|
||||||
|
|
|
@ -368,6 +368,16 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
this.Location = new Point(Global.Config.SNESGraphicsDebuggerWndx, Global.Config.SNESGraphicsDebuggerWndy);
|
this.Location = new Point(Global.Config.SNESGraphicsDebuggerWndx, Global.Config.SNESGraphicsDebuggerWndy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkBackdropColor.Checked = Global.Config.SNESGraphicsUseUserBackdropColor;
|
||||||
|
if (Global.Config.SNESGraphicsUserBackdropColor != -1)
|
||||||
|
{
|
||||||
|
pnBackdropColor.BackColor = Color.FromArgb(Global.Config.SNESGraphicsUserBackdropColor);
|
||||||
|
}
|
||||||
|
if (checkBackdropColor.Checked)
|
||||||
|
{
|
||||||
|
SyncBackdropColor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SaveConfigSettings()
|
private void SaveConfigSettings()
|
||||||
|
@ -790,6 +800,7 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
private void checkBackdropColor_CheckedChanged(object sender, EventArgs e)
|
private void checkBackdropColor_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Global.Config.SNESGraphicsUseUserBackdropColor = checkBackdropColor.Checked;
|
||||||
SyncBackdropColor();
|
SyncBackdropColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -800,6 +811,7 @@ namespace BizHawk.MultiClient
|
||||||
if (cd.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
|
if (cd.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
|
||||||
{
|
{
|
||||||
pnBackdropColor.BackColor = cd.Color;
|
pnBackdropColor.BackColor = cd.Color;
|
||||||
|
Global.Config.SNESGraphicsUserBackdropColor = pnBackdropColor.BackColor.ToArgb();
|
||||||
SyncBackdropColor();
|
SyncBackdropColor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue