diff options
author | rubidium <rubidium@openttd.org> | 2007-11-24 09:27:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-24 09:27:20 +0000 |
commit | 6c027d98b9eb91c4955ea8b7e22c7f002c3ed8be (patch) | |
tree | 82cd7ce8ab8af971ab26407cb75cb4ba3a83aed1 | |
parent | 49e2e29685e9e1241107e6b725e27a49f795b96e (diff) | |
download | openttd-6c027d98b9eb91c4955ea8b7e22c7f002c3ed8be.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.txt | 1 | ||||
-rw-r--r-- | src/viewport.cpp | 2 |
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; |