Fix crash when painting selected row backgrounds in InputRoll
This commit is contained in:
parent
d619a3c7c3
commit
17440fad2f
|
@ -830,7 +830,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
return (_drawWidth - MaxColumnWidth) / CellWidth;
|
||||
}
|
||||
|
||||
return (_drawHeight - ColumnHeight - 3) / CellHeight; // Minus three makes it work
|
||||
var result = (_drawHeight - ColumnHeight - 3) / CellHeight; // Minus three makes it work
|
||||
return result < 0 ? 0 : result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue