From 221e9271c5d17027641ff37ec3fc7a1d66b7a05e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 24 Nov 2007 09:27:20 +0000 Subject: (svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level. --- src/lang/english.txt | 1 + src/viewport.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2