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

Method OnPaint

src/terraform_gui.cpp:537–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535 }
536
537 void OnPaint() override
538 {
539 this->DrawWidgets();
540
541 if (this->IsWidgetLowered(WID_ETT_LOWER_LAND) || this->IsWidgetLowered(WID_ETT_RAISE_LAND)) { // change area-size if raise/lower corner is selected
542 SetTileSelectSize(_terraform_size, _terraform_size);
543 }
544 }
545
546 void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override
547 {

Callers

nothing calls this directly

Calls 3

SetTileSelectSizeFunction · 0.85
DrawWidgetsMethod · 0.80
IsWidgetLoweredMethod · 0.80

Tested by

no test coverage detected