Ram search - unnoticeable performance improvement, but I feel the need to put this logic in

This commit is contained in:
adelikat 2014-07-27 14:53:13 +00:00
parent 55545d5f67
commit a26c4b0b7a
1 changed files with 23 additions and 18 deletions

View File

@ -145,6 +145,8 @@ namespace BizHawk.Client.EmuHawk
}
private void ListView_QueryItemBkColor(int index, int column, ref Color color)
{
if (column == 0)
{
if (_searches.Count > 0 && column == 0)
{
@ -172,6 +174,7 @@ namespace BizHawk.Client.EmuHawk
color = nextColor;
}
}
}
private void ListView_QueryItemText(int index, int column, out string text)
{
@ -239,7 +242,9 @@ namespace BizHawk.Client.EmuHawk
}
_forcePreviewClear = false;
WatchListView.BlazingFast = true;
WatchListView.ItemCount = _searches.Count;
WatchListView.BlazingFast = false;
}
}