summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-07-10 10:41:11 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-07-10 11:27:09 +0200
commit85faa218ffe3cc8eab9c8822a9f5a5117937d8b6 (patch)
tree224bf90d09929e0be9667e5f4c3b993ab18dfd1f /src
parent0d0375c0194c5cb060fd88781da9d724702d0c1b (diff)
downloadopenttd-85faa218ffe3cc8eab9c8822a9f5a5117937d8b6.tar.xz
Remove: logically dead code in graph UI
Diffstat (limited to 'src')
-rw-r--r--src/graph_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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);