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

Method OnResize

src/main_gui.cpp:454–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452 }
453
454 void OnResize() override
455 {
456 if (this->viewport != nullptr) {
457 NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_M_VIEWPORT);
458 nvp->UpdateViewportCoordinates(this);
459 this->refresh_timeout.Reset();
460 }
461 }
462
463 bool OnTooltip([[maybe_unused]] Point pt, WidgetID widget, TooltipCloseCondition close_cond) override
464 {

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.45

Tested by

no test coverage detected