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

Method OnPaint

src/transparency_gui.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void OnPaint() override
38 {
39 this->OnInvalidateData(0); // Must be sure that the widgets show the transparency variable changes, also when we use shortcuts.
40 this->DrawWidgets();
41 }
42
43 void DrawWidget(const Rect &r, WidgetID widget) const override
44 {

Callers

nothing calls this directly

Calls 2

OnInvalidateDataMethod · 0.95
DrawWidgetsMethod · 0.80

Tested by

no test coverage detected