| 568 | } |
| 569 | |
| 570 | void OnResize() override |
| 571 | { |
| 572 | if (this->viewport != nullptr) { |
| 573 | NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_TV_VIEWPORT); |
| 574 | nvp->UpdateViewportCoordinates(this); |
| 575 | |
| 576 | ScrollWindowToTile(this->town->xy, this, true); // Re-center viewport. |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | void OnMouseWheel(int wheel, WidgetID widget) override |
| 581 | { |
nothing calls this directly
no test coverage detected