From d787c0fefce6f2414ad228f0a62659035254f203 Mon Sep 17 00:00:00 2001 From: James Groom Date: Thu, 16 May 2024 03:31:34 +1000 Subject: [PATCH] Allow `InputRoll.QueryRowBkColor` to be used without `QueryItemBkColor` --- .../CustomControls/InputRoll/InputRoll.Drawing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs index 4d7371bc52..7fd312c417 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.Drawing.cs @@ -448,7 +448,7 @@ namespace BizHawk.Client.EmuHawk // Draw Gridlines and background colors using QueryItemBkColor. private void DrawBg(List visibleColumns, Rectangle rect, int firstVisibleRow, int lastVisibleRow) { - if (QueryItemBkColor != null) + if (QueryItemBkColor is not null || QueryRowBkColor is not null) { DoBackGroundCallback(visibleColumns, rect, firstVisibleRow, lastVisibleRow); }