tool positions: tolerate slight accidental offscreen by resetting to 0 instead of ignoring
todo: check bottomright offscreen too someday?
This commit is contained in:
parent
4eaa04d412
commit
2fa40bac04
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue