From 85faa218ffe3cc8eab9c8822a9f5a5117937d8b6 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 10 Jul 2021 10:41:11 +0200 Subject: Remove: logically dead code in graph UI --- src/graph_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 00e1efd90..4779f811a 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -963,7 +963,7 @@ struct PaymentRatesGraphWindow : BaseGraphWindow { bool lowered = !HasBit(_legend_excluded_cargo, cs->Index()); /* Redraw box if lowered */ - if (lowered) DrawFrameRect(r.left, y, r.right, y + this->line_height - 1, COLOUR_BROWN, lowered ? FR_LOWERED : FR_NONE); + if (lowered) DrawFrameRect(r.left, y, r.right, y + this->line_height - 1, COLOUR_BROWN, FR_LOWERED); byte clk_dif = lowered ? 1 : 0; int rect_x = clk_dif + (rtl ? r.right - this->legend_width - WD_FRAMERECT_RIGHT : r.left + WD_FRAMERECT_LEFT); -- cgit v1.2.3-70-g09d2