diff options
author | frosch <frosch@openttd.org> | 2011-05-04 17:45:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-04 17:45:16 +0000 |
commit | 22286bd7b6ece453e449f9b9f9f360484925457c (patch) | |
tree | 6827e0912689694ba65e13df1b125458458faaa5 /src/graph_gui.cpp | |
parent | bfb419f9d81bbbf9435fcc0848480f4a3e38c138 (diff) | |
download | openttd-22286bd7b6ece453e449f9b9f9f360484925457c.tar.xz |
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index c153c4044..b4bf3174a 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -177,7 +177,7 @@ enum CompanyValueWidgets { struct BaseGraphWindow : Window { protected: static const int GRAPH_MAX_DATASETS = 32; - static const int GRAPH_AXIS_LINE_COLOUR = 215; + static const int GRAPH_AXIS_LINE_COLOUR = GREY_SCALE(1); static const int GRAPH_NUM_MONTHS = 24; ///< Number of months displayed in the graph. static const int MIN_GRAPH_NUM_LINES_Y = 9; ///< Minimal number of horizontal lines to draw. @@ -977,7 +977,7 @@ struct PaymentRatesGraphWindow : BaseGraphWindow { int rect_x = clk_dif + (rtl ? r.right - 12 : r.left + WD_FRAMERECT_LEFT); - GfxFillRect(rect_x, y + clk_dif, rect_x + 8, y + 5 + clk_dif, 0); + GfxFillRect(rect_x, y + clk_dif, rect_x + 8, y + 5 + clk_dif, GREY_SCALE(0)); GfxFillRect(rect_x + 1, y + 1 + clk_dif, rect_x + 7, y + 4 + clk_dif, cs->legend_colour); SetDParam(0, cs->name); DrawString(rtl ? r.left : x + 14 + clk_dif, (rtl ? r.right - 14 + clk_dif : r.right), y + clk_dif, STR_GRAPH_CARGO_PAYMENT_CARGO); |