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

Method OnPaint

src/error_gui.cpp:220–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 }
219
220 void OnPaint() override
221 {
222 /* Start the timeout if not already started and the message is not critical. This is handled during OnPaint so that any delay between
223 * creating the window and displaying it does not affect how long the message is visible. */
224 if (!this->is_critical && this->display_timeout.HasFired()) {
225 this->display_timeout.Reset();
226 }
227
228 this->Window::OnPaint();
229 }
230
231 void OnMouseLoop() override
232 {

Callers

nothing calls this directly

Calls 2

HasFiredMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected