genesis vdp viewer: allow scrollbars when shrunk.

This commit is contained in:
feos 2015-10-16 21:59:15 +03:00
parent 195197fb70
commit 9f2879acb6
2 changed files with 7 additions and 0 deletions

View File

@ -233,6 +233,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1078, 954);
this.Controls.Add(this.label1);
this.Controls.Add(this.groupBox5);

View File

@ -21,6 +21,12 @@ namespace BizHawk.Client.EmuHawk
private LibGPGX.VDPView View = new LibGPGX.VDPView();
int palindex = 0;
protected override System.Drawing.Point ScrollToControl(System.Windows.Forms.Control activeControl)
{
// Returning the current location prevents the panel from scrolling to the active control when the panel loses and regains focus
return this.DisplayRectangle.Location;
}
public GenVDPViewer()
{
InitializeComponent();