mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level.
This commit is contained in:
parent
9a70ec1cb2
commit
221e9271c5
|
@ -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}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue