Ram Search - another speed up - prevent recoloring the background unless it has changed

This commit is contained in:
adelikat 2012-08-29 02:58:22 +00:00
parent 0e02fd7ee4
commit ff84855f2a
1 changed files with 36 additions and 5 deletions

View File

@ -588,18 +588,49 @@ namespace BizHawk.MultiClient
{
if (color == Color.Pink) return;
if (Global.CheatList.IsActiveCheat(Domain, searchList[index].address))
color = Color.Purple;
{
if (color == Color.Purple)
{
return;
}
else
{
color = Color.Purple;
}
}
else
color = Color.Pink;
{
if (color == Color.Pink)
{
return;
}
else
{
color = Color.Pink;
}
}
}
else if (Global.CheatList.IsActiveCheat(Domain, searchList[index].address))
{
color = Color.LightCyan;
if (color == Color.LightCyan)
{
return;
}
else
{
color = Color.LightCyan;
}
}
else
{
if (color == Color.White) return;
color = Color.White;
if (color == Color.White)
{
return;
}
else
{
color = Color.White;
}
}
}
}