Ram Search - bg color drawing - don't use engine indexer so much, it news up a new object every time
This commit is contained in:
parent
98f9db4bc8
commit
eab4d2127a
|
@ -190,11 +190,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if ((_searches.Count > 0) && (index < _searches.Count))
|
if ((_searches.Count > 0) && (index < _searches.Count))
|
||||||
{
|
{
|
||||||
var nextColor = Color.White;
|
var nextColor = Color.White;
|
||||||
|
var search = _searches[index];
|
||||||
|
var isCheat = MainForm.CheatList.IsActive(_settings.Domain, search.Address);
|
||||||
|
var isWeeded = Settings.PreviewMode && !_forcePreviewClear && _searches.Preview(search.Address);
|
||||||
|
|
||||||
var isCheat = MainForm.CheatList.IsActive(_settings.Domain, _searches[index].Address);
|
if (!search.IsValid)
|
||||||
var isWeeded = Settings.PreviewMode && !_forcePreviewClear && _searches.Preview(_searches[index].Address);
|
|
||||||
|
|
||||||
if (!_searches[index].IsValid)
|
|
||||||
{
|
{
|
||||||
nextColor = Color.PeachPuff;
|
nextColor = Color.PeachPuff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue