genesis vdp viewer: allow scrollbars when shrunk.
This commit is contained in:
parent
195197fb70
commit
9f2879acb6
|
@ -233,6 +233,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.AutoScroll = true;
|
||||||
this.ClientSize = new System.Drawing.Size(1078, 954);
|
this.ClientSize = new System.Drawing.Size(1078, 954);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.groupBox5);
|
this.Controls.Add(this.groupBox5);
|
||||||
|
|
|
@ -21,6 +21,12 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private LibGPGX.VDPView View = new LibGPGX.VDPView();
|
private LibGPGX.VDPView View = new LibGPGX.VDPView();
|
||||||
int palindex = 0;
|
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()
|
public GenVDPViewer()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
Loading…
Reference in New Issue