Fix #10150: Force FS_SMALL for small viewport signs. (#10283)

* Fix #10150: Force FS_SMALL for small viewport signs.

This is a workaround for string widths being different with mixed
font-sizes.

* Fix: Flag small sign shadow as small text.

(This method of drawing shadows is hilarious and needs replacing, but
this is a quick fix.)
This commit is contained in:
PeterN
2022-12-25 13:29:38 +00:00
committed by GitHub
parent 23eec0b7b3
commit c8cc61d889
2 changed files with 3 additions and 3 deletions

View File

@@ -408,7 +408,7 @@ void Town::UpdateVirtCoord()
SetDParam(1, this->cache.population);
this->cache.sign.UpdatePosition(pt.x, pt.y - 24 * ZOOM_LVL_BASE,
_settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN,
STR_VIEWPORT_TOWN);
STR_VIEWPORT_TOWN_TINY_WHITE);
_viewport_sign_kdtree.Insert(ViewportSignKdtreeItem::MakeTown(this->index));