MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / RedrawSmallmap

Function RedrawSmallmap

src/settings_table.cpp:162–167  ·  view source on GitHub ↗

* Redraw the smallmap after a colour scheme change. */

Source from the content-addressed store, hash-verified

160 * Redraw the smallmap after a colour scheme change.
161 */
162static void RedrawSmallmap(int32_t)
163{
164 BuildLandLegend();
165 BuildOwnerLegend();
166 SetWindowClassesDirty(WC_SMALLMAP);
167}
168
169/** Redraw linkgraph links after a colour scheme change. */
170static void UpdateLinkgraphColours(int32_t)

Callers

nothing calls this directly

Calls 3

BuildLandLegendFunction · 0.85
BuildOwnerLegendFunction · 0.85
SetWindowClassesDirtyFunction · 0.85

Tested by

no test coverage detected