From b8baf21788602012bb86d4e944c2cae90eb237d5 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Thu, 2 Jan 2025 04:58:33 +0100 Subject: [PATCH] fix selection color in TAStudio - closes #4158 fixes bd3f9191290f7df25deb16081499679636a387a2 --- .../CustomControls/InputRoll/InputRoll.Drawing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs index 73ab2bcaf7..cea79d1e6d 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs @@ -506,6 +506,7 @@ namespace BizHawk.Client.EmuHawk { var visibleRows = FirstVisibleRow.RangeTo(LastVisibleRow); int lastRow = -1; + var rowColor = _backColor; foreach (Cell cell in _selectedItems) { if (!cell.RowIndex.HasValue || !visibleRows.Contains(cell.RowIndex.Value) || !VisibleColumns.Contains(cell.Column)) @@ -520,7 +521,6 @@ namespace BizHawk.Client.EmuHawk }; relativeCell.RowIndex -= CountLagFramesAbsolute(relativeCell.RowIndex.Value); - var rowColor = _backColor; if (QueryRowBkColor != null && lastRow != cell.RowIndex.Value) { QueryRowBkColor(cell.RowIndex.Value, ref rowColor);