diff options
author | frosch <frosch@openttd.org> | 2011-05-06 21:13:29 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-06 21:13:29 +0000 |
commit | 5e449b8fae1f5f9941a385a49eb1e958788809c2 (patch) | |
tree | 25417fb45b1166841824fccffbbd217810246bf6 /src/industry_gui.cpp | |
parent | 4b0a2fbe293acbfe138b788701b6e71c5356d0e8 (diff) | |
download | openttd-5e449b8fae1f5f9941a385a49eb1e958788809c2.tar.xz |
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 0de2f63a0..b50eddd91 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -396,7 +396,7 @@ public: /* Draw the name of the industry in white is selected, otherwise, in orange */ DrawString(x + MATRIX_TEXT_OFFSET, r.right - WD_MATRIX_RIGHT, y, indsp->name, selected ? TC_WHITE : TC_ORANGE); - GfxFillRect(x, y + 1, x + 10, y + 7, selected ? GREY_SCALE(15) : GREY_SCALE(0)); + GfxFillRect(x, y + 1, x + 10, y + 7, selected ? PC_WHITE : PC_BLACK); GfxFillRect(x + 1, y + 2, x + 9, y + 6, indsp->map_colour); } break; @@ -1677,7 +1677,7 @@ struct CargoesField { blob_left = xpos + BLOB_DISTANCE; blob_right = blob_left + BLOB_WIDTH; } - GfxFillRect(blob_left, ypos2 - BLOB_DISTANCE - BLOB_HEIGHT, blob_right, ypos2 - BLOB_DISTANCE, GREY_SCALE(0)); // Border + GfxFillRect(blob_left, ypos2 - BLOB_DISTANCE - BLOB_HEIGHT, blob_right, ypos2 - BLOB_DISTANCE, PC_BLACK); // Border GfxFillRect(blob_left + 1, ypos2 - BLOB_DISTANCE - BLOB_HEIGHT + 1, blob_right - 1, ypos2 - BLOB_DISTANCE - 1, indsp->map_colour); } else { DrawString(xpos, xpos2, ypos, STR_INDUSTRY_CARGOES_HOUSES, TC_FROMSTRING, SA_HOR_CENTER); @@ -1899,8 +1899,8 @@ const int CargoesField::BLOB_HEIGHT = 9; ///< Height of the industry legend c /** Width of a #CFT_CARGO field. */ const int CargoesField::CARGO_FIELD_WIDTH = HOR_CARGO_BORDER_SPACE * 2 + HOR_CARGO_WIDTH * MAX_CARGOES + HOR_CARGO_SPACE * (MAX_CARGOES - 1); -const int CargoesField::INDUSTRY_LINE_COLOUR = 191; ///< Line colour of the industry type box. -const int CargoesField::CARGO_LINE_COLOUR = 191; ///< Line colour around the cargo. +const int CargoesField::INDUSTRY_LINE_COLOUR = PC_YELLOW; ///< Line colour of the industry type box. +const int CargoesField::CARGO_LINE_COLOUR = PC_YELLOW; ///< Line colour around the cargo. /** A single row of #CargoesField. */ struct CargoesRow { |