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

Method OnResize

src/vehicle_gui.cpp:3346–3352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3344 }
3345
3346 void OnResize() override
3347 {
3348 if (this->viewport != nullptr) {
3349 NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_VV_VIEWPORT);
3350 nvp->UpdateViewportCoordinates(this);
3351 }
3352 }
3353
3354 void UpdateButtonStatus()
3355 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected