summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-04 22:12:09 +0000
committerrubidium <rubidium@openttd.org>2010-05-04 22:12:09 +0000
commitd031034789330842a113186f389a313a56349027 (patch)
tree01566ae1c3592c3a846f0fbb4d7cb7ed56a1bfba /src/smallmap_gui.cpp
parent32f473c7c1d55f9ba2b9c19380e40e4976f06585 (diff)
downloadopenttd-d031034789330842a113186f389a313a56349027.tar.xz
(svn r19760) -Change: use the {HEIGHT} command for the smallmap legend
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 45a5d334d..715d68092 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -77,11 +77,11 @@ struct LegendAndColour {
/** Legend text giving the colours to look for on the minimap */
static LegendAndColour _legend_land_contours[] = {
/* The colours for the following values are set at BuildLandLegend() based on each colour scheme. */
- MC(STR_SMALLMAP_LEGENDA_100M),
- MC(STR_SMALLMAP_LEGENDA_200M),
- MC(STR_SMALLMAP_LEGENDA_300M),
- MC(STR_SMALLMAP_LEGENDA_400M),
- MC(STR_SMALLMAP_LEGENDA_500M),
+ MC(STR_TINY_BLACK_HEIGHT),
+ MC(STR_TINY_BLACK_HEIGHT),
+ MC(STR_TINY_BLACK_HEIGHT),
+ MC(STR_TINY_BLACK_HEIGHT),
+ MC(STR_TINY_BLACK_HEIGHT),
MS(0xD7, STR_SMALLMAP_LEGENDA_ROADS),
MK(0x0A, STR_SMALLMAP_LEGENDA_RAILROADS),
@@ -1103,6 +1103,9 @@ public:
GfxFillRect(x + blob_left, y + 1, x + blob_right, y + row_height - 1, 0); // Outer border of the legend colour
}
} else {
+ if (this->map_type == SMT_CONTOUR) {
+ SetDParam(0, (tbl - _legend_table[this->map_type] + 1) * 100);
+ }
/* Anything that is not an industry is using normal process */
GfxFillRect(x + blob_left, y + 1, x + blob_right, y + row_height - 1, 0);
DrawString(x + text_left, x + text_right, y, tbl->legend);