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

Method Draw

src/linkgraph/linkgraph_gui.cpp:262–270  ·  view source on GitHub ↗

* Draw the linkgraph overlay or some part of it, in the area given. * @param dpi Area to be drawn to. */

Source from the content-addressed store, hash-verified

260 * @param dpi Area to be drawn to.
261 */
262void LinkGraphOverlay::Draw(const DrawPixelInfo *dpi)
263{
264 if (this->dirty) {
265 this->RebuildCache();
266 this->dirty = false;
267 }
268 this->DrawLinks(dpi);
269 this->DrawStationDots(dpi);
270}
271
272/**
273 * Draw the cached links or part of them into the given area.

Callers

nothing calls this directly

Calls 3

RebuildCacheMethod · 0.95
DrawLinksMethod · 0.95
DrawStationDotsMethod · 0.95

Tested by

no test coverage detected