InputRoll - some cleanup
This commit is contained in:
parent
121b1edad9
commit
acee277685
|
@ -1294,6 +1294,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
HBar.LargeChange = 20;
|
HBar.LargeChange = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnChangedCallback();
|
||||||
RecalculateScrollBars();
|
RecalculateScrollBars();
|
||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
|
@ -1684,9 +1685,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (_horizontalOrientation)
|
if (_horizontalOrientation)
|
||||||
{
|
{
|
||||||
return index * CellWidth + ColumnWidth;
|
return (index * CellWidth) + ColumnWidth;
|
||||||
}
|
}
|
||||||
return index * CellHeight + ColumnHeight;
|
|
||||||
|
return (index * CellHeight) + ColumnHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1729,8 +1731,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void UpdateCellSize()
|
private void UpdateCellSize()
|
||||||
{
|
{
|
||||||
CellHeight = _charSize.Height + CellHeightPadding * 2;
|
CellHeight = _charSize.Height + (CellHeightPadding * 2);
|
||||||
CellWidth = _charSize.Width * MaxCharactersInHorizontal + CellWidthPadding * 4; // Double the padding for horizontal because it looks better
|
CellWidth = (_charSize.Width * MaxCharactersInHorizontal) + (CellWidthPadding * 4); // Double the padding for horizontal because it looks better
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue