InputRoll - some cleanup

This commit is contained in:
adelikat 2014-10-15 22:14:44 +00:00
parent 121b1edad9
commit acee277685
1 changed files with 6 additions and 4 deletions

View File

@ -1294,6 +1294,7 @@ namespace BizHawk.Client.EmuHawk
HBar.LargeChange = 20;
}
ColumnChangedCallback();
RecalculateScrollBars();
Refresh();
@ -1684,9 +1685,10 @@ namespace BizHawk.Client.EmuHawk
{
if (_horizontalOrientation)
{
return index * CellWidth + ColumnWidth;
return (index * CellWidth) + ColumnWidth;
}
return index * CellHeight + ColumnHeight;
return (index * CellHeight) + ColumnHeight;
}
/// <summary>
@ -1729,8 +1731,8 @@ namespace BizHawk.Client.EmuHawk
/// </summary>
private void UpdateCellSize()
{
CellHeight = _charSize.Height + CellHeightPadding * 2;
CellWidth = _charSize.Width * MaxCharactersInHorizontal + CellWidthPadding * 4; // Double the padding for horizontal because it looks better
CellHeight = _charSize.Height + (CellHeightPadding * 2);
CellWidth = (_charSize.Width * MaxCharactersInHorizontal) + (CellWidthPadding * 4); // Double the padding for horizontal because it looks better
}
#endregion