diff --git a/GUI.NET/Forms/Config/frmInputConfig.cs b/GUI.NET/Forms/Config/frmInputConfig.cs index 8dd1fba6..01cb4b9e 100644 --- a/GUI.NET/Forms/Config/frmInputConfig.cs +++ b/GUI.NET/Forms/Config/frmInputConfig.cs @@ -412,11 +412,18 @@ namespace Mesen.GUI.Forms.Config if(frm.Height + point.Y > screen.Bottom) { //Show on top instead point.Y -= btn.Height + frm.Height; + + if(point.Y < 0) { + point.Y = 0; + } } if(frm.Width + point.X > screen.Right) { //Show on left instead point.X -= frm.Width - btn.Width; + if(point.X < 0) { + point.X = 0; + } } frm.Text = title;