summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-24 09:27:20 +0000
committerrubidium <rubidium@openttd.org>2007-11-24 09:27:20 +0000
commit221e9271c5d17027641ff37ec3fc7a1d66b7a05e (patch)
tree82cd7ce8ab8af971ab26407cb75cb4ba3a83aed1
parent9a70ec1cb2e181c103f821aceed0a54e86132164 (diff)
downloadopenttd-221e9271c5d17027641ff37ec3fc7a1d66b7a05e.tar.xz
(svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level.
-rw-r--r--src/lang/english.txt1
-rw-r--r--src/viewport.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index e5d284a75..a689d8d75 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -1705,6 +1705,7 @@ STR_TOWN_LABEL :{WHITE}{TOWN}
STR_TOWN_LABEL_TINY_BLACK :{TINYFONT}{BLACK}{TOWN}
STR_TOWN_LABEL_TINY_WHITE :{TINYFONT}{WHITE}{TOWN}
STR_2002 :{TINYFONT}{BLACK}{SIGN}
+STR_2002_WHITE :{TINYFONT}{WHITE}{SIGN}
STR_2004_BUILDING_MUST_BE_DEMOLISHED :{WHITE}Building must be demolished first
STR_2005 :{WHITE}{TOWN}
STR_2006_POPULATION :{BLACK}Population: {ORANGE}{COMMA}{BLACK} Houses: {ORANGE}{COMMA}
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 21ce36560..26d2d7644 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1251,7 +1251,7 @@ static void ViewportAddSigns(DrawPixelInfo *dpi)
top < si->sign.top + ScaleByZoom(12, dpi->zoom) &&
right > si->sign.left &&
left < si->sign.left + ScaleByZoom(si->sign.width_2, dpi->zoom)) {
- AddSign(si, STR_2002, si->sign.width_2 | 0x8000);
+ AddSign(si, IsTransparencySet(TO_SIGNS) ? STR_2002_WHITE : STR_2002, si->sign.width_2 | 0x8000);
}
}
break;