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

Method OnPaint

src/fios_gui.cpp:656–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654 }
655
656 void OnPaint() override
657 {
658 if (_savegame_sort_dirty) {
659 _savegame_sort_dirty = false;
660 SortSaveGameList(this->fios_items);
661 this->OnInvalidateData(SLIWD_FILTER_CHANGES);
662 }
663
664 this->DrawWidgets();
665 }
666
667 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
668 {

Callers

nothing calls this directly

Calls 3

OnInvalidateDataMethod · 0.95
SortSaveGameListFunction · 0.85
DrawWidgetsMethod · 0.80

Tested by

no test coverage detected