InputRoll - don't allow resizing columns to a negative width
This commit is contained in:
parent
f1d688f7bb
commit
3010cf3a3d
|
@ -975,6 +975,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
if (_currentX != _previousX)
|
||||
{
|
||||
_columnResizing.Width += _currentX - _previousX;
|
||||
if (_columnResizing.Width <= 0)
|
||||
{
|
||||
_columnResizing.Width = 1;
|
||||
}
|
||||
|
||||
_columns.ColumnsChanged();
|
||||
Refresh();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue