summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-06 21:13:29 +0000
committerfrosch <frosch@openttd.org>2011-05-06 21:13:29 +0000
commit5e449b8fae1f5f9941a385a49eb1e958788809c2 (patch)
tree25417fb45b1166841824fccffbbd217810246bf6 /src/graph_gui.cpp
parent4b0a2fbe293acbfe138b788701b6e71c5356d0e8 (diff)
downloadopenttd-5e449b8fae1f5f9941a385a49eb1e958788809c2.tar.xz
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index b4bf3174a..e852e2f88 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 = GREY_SCALE(1);
+ static const int GRAPH_AXIS_LINE_COLOUR = PC_BLACK;
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, GREY_SCALE(0));
+ GfxFillRect(rect_x, y + clk_dif, rect_x + 8, y + 5 + clk_dif, PC_BLACK);
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);
@@ -1425,7 +1425,7 @@ struct PerformanceRatingDetailWindow : Window {
ScoreID score_type = (ScoreID)(widget - PRW_SCORE_FIRST);
- /* The colours used to show how the progress is going */
+ /* The colours used to show how the progress is going */
int colour_done = _colour_gradient[COLOUR_GREEN][4];
int colour_notdone = _colour_gradient[COLOUR_RED][4];