Fix crash when painting selected row backgrounds in InputRoll

This commit is contained in:
YoshiRulz 2020-09-12 21:14:25 +10:00 committed by adelikat
parent d619a3c7c3
commit 17440fad2f
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}