From acee2776852b096b6b18a72ae09a0372bde62237 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 15 Oct 2014 22:14:44 +0000 Subject: [PATCH] InputRoll - some cleanup --- BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs index 9c9f33dcf6..3bc09cd5d3 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs @@ -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; } /// @@ -1729,8 +1731,8 @@ namespace BizHawk.Client.EmuHawk /// 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