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

Method ProcessScheduledResize

src/window.cpp:3223–3230  ·  view source on GitHub ↗

* Process scheduled OnResize() event. */

Source from the content-addressed store, hash-verified

3221 * Process scheduled OnResize() event.
3222 */
3223void Window::ProcessScheduledResize()
3224{
3225 /* Sometimes OnResize() resizes the window again, in which case we can reprocess immediately. */
3226 while (this->scheduled_resize) {
3227 this->scheduled_resize = false;
3228 this->OnResize();
3229 }
3230}
3231
3232/**
3233 * Mark this window's data as invalid (in need of re-computing)

Callers 1

UpdateWindowsFunction · 0.80

Calls 1

OnResizeMethod · 0.95

Tested by

no test coverage detected