From ef36cb5262c06c90a26b1c267e84c14f1f43f06a Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 22 Sep 2014 15:49:55 +0000 Subject: [PATCH] InputRoll - fix column cell highlight logic, wasn't calculating height properly --- BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs index 596a518852..0390f78363 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs @@ -576,7 +576,6 @@ namespace BizHawk.Client.EmuHawk } } - //TODO Centering text is buggy and only implemented for Horizontal Orientation private void DrawData(PaintEventArgs e) { if (QueryItemText != null) @@ -706,7 +705,7 @@ namespace BizHawk.Client.EmuHawk } Gdi.SetBrush(SystemColors.Highlight); - Gdi.FillRectangle(1, i * CellHeight + 1, ColumnWidth - 1, CellHeight - 1); + Gdi.FillRectangle(1, i * CellHeight + 1, ColumnWidth - 1, ColumnHeight - 1); } } else @@ -722,7 +721,7 @@ namespace BizHawk.Client.EmuHawk int left = _columns[i].Left.Value - HBar.Value; int width = _columns[i].Right.Value - HBar.Value - left; Gdi.SetBrush(SystemColors.Highlight); - Gdi.FillRectangle(left + 1, 1, width - 1, CellHeight - 1); + Gdi.FillRectangle(left + 1, 1, width - 1, ColumnHeight - 1); } } }