fix selection color in TAStudio

- closes #4158

fixes bd3f919129
This commit is contained in:
Morilli 2025-01-02 04:58:33 +01:00
parent 7c38810e9e
commit b8baf21788
1 changed files with 1 additions and 1 deletions

View File

@ -506,6 +506,7 @@ namespace BizHawk.Client.EmuHawk
{ {
var visibleRows = FirstVisibleRow.RangeTo(LastVisibleRow); var visibleRows = FirstVisibleRow.RangeTo(LastVisibleRow);
int lastRow = -1; int lastRow = -1;
var rowColor = _backColor;
foreach (Cell cell in _selectedItems) foreach (Cell cell in _selectedItems)
{ {
if (!cell.RowIndex.HasValue || !visibleRows.Contains(cell.RowIndex.Value) || !VisibleColumns.Contains(cell.Column)) 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); relativeCell.RowIndex -= CountLagFramesAbsolute(relativeCell.RowIndex.Value);
var rowColor = _backColor;
if (QueryRowBkColor != null && lastRow != cell.RowIndex.Value) if (QueryRowBkColor != null && lastRow != cell.RowIndex.Value)
{ {
QueryRowBkColor(cell.RowIndex.Value, ref rowColor); QueryRowBkColor(cell.RowIndex.Value, ref rowColor);