summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-04 17:45:16 +0000
committerfrosch <frosch@openttd.org>2011-05-04 17:45:16 +0000
commit22286bd7b6ece453e449f9b9f9f360484925457c (patch)
tree6827e0912689694ba65e13df1b125458458faaa5 /src/industry_gui.cpp
parentbfb419f9d81bbbf9435fcc0848480f4a3e38c138 (diff)
downloadopenttd-22286bd7b6ece453e449f9b9f9f360484925457c.tar.xz
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index cf1d8b1f2..0de2f63a0 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 ? 15 : 0);
+ GfxFillRect(x, y + 1, x + 10, y + 7, selected ? GREY_SCALE(15) : GREY_SCALE(0));
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, 0); // Border
+ GfxFillRect(blob_left, ypos2 - BLOB_DISTANCE - BLOB_HEIGHT, blob_right, ypos2 - BLOB_DISTANCE, GREY_SCALE(0)); // 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);