summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-13 14:55:55 +0100
committerGitHub <noreply@github.com>2021-01-13 14:55:55 +0100
commitde44ce2092a74a88236b08c8afba9f5af59af76d (patch)
tree1884bf025f638498f0d966a41ddb2e6300f837c1 /src
parent60851ef1a69a22b5efc43223363d3a4f62b1167e (diff)
downloadopenttd-de44ce2092a74a88236b08c8afba9f5af59af76d.tar.xz
Change: darken the background of all graph to increase contrast (#8557)
Now lines like Mauve, Dark Green and Purple are much more visible without hurting the other colours.
Diffstat (limited to 'src')
-rw-r--r--src/graph_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 2578c73f3..ea38914ad 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -325,6 +325,9 @@ protected:
/* Where to draw the X axis. Use floating point to avoid overflowing and results of zero. */
x_axis_offset = (int)((r.bottom - r.top) * (double)interval.highest / (double)interval_size);
+ /* Draw the background of the graph itself. */
+ GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(2));
+
/* Draw the vertical grid lines. */
/* Don't draw the first line, as that's where the axis will be. */