From ff84855f2aeb9f4209abf9c5c66358eefe368cd1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 29 Aug 2012 02:58:22 +0000 Subject: [PATCH] Ram Search - another speed up - prevent recoloring the background unless it has changed --- BizHawk.MultiClient/tools/RamSearch.cs | 41 ++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/BizHawk.MultiClient/tools/RamSearch.cs b/BizHawk.MultiClient/tools/RamSearch.cs index 9679fd25c8..610836a3e7 100644 --- a/BizHawk.MultiClient/tools/RamSearch.cs +++ b/BizHawk.MultiClient/tools/RamSearch.cs @@ -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; + } } } }