Change: darken the background of all graph to increase contrast ()

Now lines like Mauve, Dark Green and Purple are much more visible
without hurting the other colours.
This commit is contained in:
Patric Stout 2021-01-13 14:55:55 +01:00 committed by GitHub
parent 60851ef1a6
commit de44ce2092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,6 +325,9 @@ protected:
/* Where to draw the X axis. Use floating point to avoid overflowing and results of zero. */ /* 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); 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. */ /* Draw the vertical grid lines. */
/* Don't draw the first line, as that's where the axis will be. */ /* Don't draw the first line, as that's where the axis will be. */