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

Function SetWindowDirtyForViewportCatchment

src/viewport.cpp:3688–3695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3686}
3687
3688static void SetWindowDirtyForViewportCatchment()
3689{
3690 if (_viewport_highlight_station != nullptr) SetWindowDirty(WC_STATION_VIEW, _viewport_highlight_station->index);
3691 if (_viewport_highlight_station_rect != nullptr) SetWindowDirty(WC_STATION_VIEW, _viewport_highlight_station_rect->index);
3692 if (_viewport_highlight_waypoint != nullptr) SetWindowDirty(WC_WAYPOINT_VIEW, _viewport_highlight_waypoint->index);
3693 if (_viewport_highlight_waypoint_rect != nullptr) SetWindowDirty(WC_WAYPOINT_VIEW, _viewport_highlight_waypoint_rect->index);
3694 if (_viewport_highlight_town != nullptr) SetWindowDirty(WC_TOWN_VIEW, _viewport_highlight_town->index);
3695}
3696
3697static void ClearViewportCatchment()
3698{

Callers 5

SetViewportStationRectFunction · 0.85
SetViewportWaypointRectFunction · 0.85
SetViewportCatchmentTownFunction · 0.85

Calls 1

SetWindowDirtyFunction · 0.85

Tested by

no test coverage detected