gb gpu view: save sprite back color in config, and set default to a gameboy-impossible color

This commit is contained in:
goyuken 2012-11-14 15:23:38 +00:00
parent b84ec59bb4
commit 00c4db8eeb
3 changed files with 19 additions and 18 deletions

View File

@ -425,7 +425,7 @@ namespace BizHawk.MultiClient
public bool GBGPUViewSaveWindowPosition = true; public bool GBGPUViewSaveWindowPosition = true;
public int GBGPUViewWndx = -1; public int GBGPUViewWndx = -1;
public int GBGPUViewWndy = -1; public int GBGPUViewWndy = -1;
public Color GBGPUSpriteBack = Color.Lime;
// SNES Graphics Debugger Dialog Settings // SNES Graphics Debugger Dialog Settings
public bool AutoLoadSNESGraphicsDebugger = false; public bool AutoLoadSNESGraphicsDebugger = false;

View File

@ -56,9 +56,9 @@
this.checkBoxSavePos = new System.Windows.Forms.CheckBox(); this.checkBoxSavePos = new System.Windows.Forms.CheckBox();
this.checkBoxAutoLoad = new System.Windows.Forms.CheckBox(); this.checkBoxAutoLoad = new System.Windows.Forms.CheckBox();
this.groupBox8 = new System.Windows.Forms.GroupBox(); this.groupBox8 = new System.Windows.Forms.GroupBox();
this.panelSpriteBackColor = new System.Windows.Forms.Panel();
this.buttonChangeColor = new System.Windows.Forms.Button();
this.labelSpriteBackColor = new System.Windows.Forms.Label(); this.labelSpriteBackColor = new System.Windows.Forms.Label();
this.buttonChangeColor = new System.Windows.Forms.Button();
this.panelSpriteBackColor = new System.Windows.Forms.Panel();
this.bmpViewMemory = new BizHawk.MultiClient.GBtools.BmpView(); this.bmpViewMemory = new BizHawk.MultiClient.GBtools.BmpView();
this.bmpViewDetails = new BizHawk.MultiClient.GBtools.BmpView(); this.bmpViewDetails = new BizHawk.MultiClient.GBtools.BmpView();
this.bmpViewOAM = new BizHawk.MultiClient.GBtools.BmpView(); this.bmpViewOAM = new BizHawk.MultiClient.GBtools.BmpView();
@ -379,13 +379,14 @@
this.groupBox8.TabStop = false; this.groupBox8.TabStop = false;
this.groupBox8.Text = "Sprite Backdrop"; this.groupBox8.Text = "Sprite Backdrop";
// //
// panelSpriteBackColor // labelSpriteBackColor
// //
this.panelSpriteBackColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.labelSpriteBackColor.AutoSize = true;
this.panelSpriteBackColor.Location = new System.Drawing.Point(6, 19); this.labelSpriteBackColor.Location = new System.Drawing.Point(67, 24);
this.panelSpriteBackColor.Name = "panelSpriteBackColor"; this.labelSpriteBackColor.Name = "labelSpriteBackColor";
this.panelSpriteBackColor.Size = new System.Drawing.Size(55, 23); this.labelSpriteBackColor.Size = new System.Drawing.Size(35, 13);
this.panelSpriteBackColor.TabIndex = 0; this.labelSpriteBackColor.TabIndex = 2;
this.labelSpriteBackColor.Text = "label8";
// //
// buttonChangeColor // buttonChangeColor
// //
@ -397,14 +398,13 @@
this.buttonChangeColor.UseVisualStyleBackColor = true; this.buttonChangeColor.UseVisualStyleBackColor = true;
this.buttonChangeColor.Click += new System.EventHandler(this.buttonChangeColor_Click); this.buttonChangeColor.Click += new System.EventHandler(this.buttonChangeColor_Click);
// //
// labelSpriteBackColor // panelSpriteBackColor
// //
this.labelSpriteBackColor.AutoSize = true; this.panelSpriteBackColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.labelSpriteBackColor.Location = new System.Drawing.Point(67, 24); this.panelSpriteBackColor.Location = new System.Drawing.Point(6, 19);
this.labelSpriteBackColor.Name = "labelSpriteBackColor"; this.panelSpriteBackColor.Name = "panelSpriteBackColor";
this.labelSpriteBackColor.Size = new System.Drawing.Size(35, 13); this.panelSpriteBackColor.Size = new System.Drawing.Size(55, 23);
this.labelSpriteBackColor.TabIndex = 2; this.panelSpriteBackColor.TabIndex = 0;
this.labelSpriteBackColor.Text = "label8";
// //
// bmpViewMemory // bmpViewMemory
// //
@ -520,7 +520,7 @@
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(834, 580); this.ClientSize = new System.Drawing.Size(834, 578);
this.Controls.Add(this.groupBox8); this.Controls.Add(this.groupBox8);
this.Controls.Add(this.groupBox7); this.Controls.Add(this.groupBox7);
this.Controls.Add(this.groupBox6); this.Controls.Add(this.groupBox6);

View File

@ -67,7 +67,7 @@ namespace BizHawk.MultiClient.GBtools
checkBoxSavePos.Checked = Global.Config.GBGPUViewSaveWindowPosition; checkBoxSavePos.Checked = Global.Config.GBGPUViewSaveWindowPosition;
// TODO: from config // TODO: from config
spriteback = Color.Black; spriteback = Color.FromArgb(255, Global.Config.GBGPUSpriteBack);
} }
public void Restart() public void Restart()
@ -472,6 +472,7 @@ namespace BizHawk.MultiClient.GBtools
gb.SetScanlineCallback(null, 0); gb.SetScanlineCallback(null, 0);
gb = null; gb = null;
} }
Global.Config.GBGPUSpriteBack = spriteback;
} }
private void GBGPUView_Load(object sender, EventArgs e) private void GBGPUView_Load(object sender, EventArgs e)