Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index f8e42c6a1..e4cfd68d2 100644
- --- a/src/graph_gui.cpp
- +++ b/src/graph_gui.cpp
- @@ -330,16 +330,6 @@ protected:
- /* Draw the background of the graph itself. */
- GfxFillRect(r.left, r.top, r.right, r.bottom, GRAPH_BASE_COLOUR);
- - /* Draw the vertical grid lines. */
- -
- - /* Don't draw the first line, as that's where the axis will be. */
- - x = r.left + x_sep;
- -
- - for (int i = 0; i < this->num_vert_lines; i++) {
- - GfxFillRect(x, r.top, x, r.bottom, GRAPH_GRID_COLOUR);
- - x += x_sep;
- - }
- -
- /* Draw the horizontal grid lines. */
- y = r.bottom;
- @@ -384,9 +374,11 @@ protected:
- byte month = this->month;
- Year year = this->year;
- for (int i = 0; i < this->num_on_x_axis; i++) {
- - SetDParam(0, month + STR_MONTH_ABBREV_JAN);
- - SetDParam(1, year);
- - DrawStringMultiLine(x, x + x_sep, y, this->height, month == 0 ? STR_GRAPH_X_LABEL_MONTH_YEAR : STR_GRAPH_X_LABEL_MONTH, graph_axis_label_colour, SA_LEFT);
- + if (i > 0) {
- + SetDParam(0, month + STR_MONTH_ABBREV_JAN);
- + SetDParam(1, year);
- + DrawStringMultiLine(x - x_sep / 2 , x + x_sep / 2, y, this->height, month == 6 ? STR_GRAPH_X_LABEL_MONTH_YEAR : STR_GRAPH_X_LABEL_MONTH, graph_axis_label_colour, SA_HOR_CENTER);
- + }
- month += 3;
- if (month >= 12) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement