tool positions: tolerate slight accidental offscreen by resetting to 0 instead of ignoring

todo: check bottomright offscreen too someday?
This commit is contained in:
feos 2017-03-15 19:49:32 +03:00
parent 4eaa04d412
commit 2fa40bac04
1 changed files with 2 additions and 0 deletions

View File

@ -262,6 +262,8 @@ namespace BizHawk.Client.EmuHawk
{
settings.Wndx = form.Location.X;
settings.Wndy = form.Location.Y;
if (settings.Wndx < 0) settings.Wndx = 0;
if (settings.Wndy < 0) settings.Wndy = 0;
settings.Width = form.Right - form.Left; // why not form.Size.Width?
settings.Height = form.Bottom - form.Top;
}