From a17c0270c2f90b0d675f1aaf0fcfa8508da23726 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sun, 20 Feb 2011 03:50:08 +0000 Subject: [PATCH] Ram Watch - refix background color on separators --- BizHawk.MultiClient/tools/RamWatch.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/tools/RamWatch.cs b/BizHawk.MultiClient/tools/RamWatch.cs index e9076f0e15..4700367516 100644 --- a/BizHawk.MultiClient/tools/RamWatch.cs +++ b/BizHawk.MultiClient/tools/RamWatch.cs @@ -80,12 +80,18 @@ namespace BizHawk.MultiClient { InitializeComponent(); WatchListView.QueryItemText += new QueryItemTextHandler(WatchListView_QueryItemText); + WatchListView.QueryItemBkColor += new QueryItemBkColorHandler(WatchListView_QueryItemBkColor); WatchListView.VirtualMode = true; } + private void WatchListView_QueryItemBkColor(int index, int column, ref Color color) + { + if (watchList[index].type == atype.SEPARATOR) + color = this.BackColor; + } + void WatchListView_QueryItemText(int index, int column, out string text) { - //TODO: separator background color text = ""; if (column == 0) {