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

Function ReInitWindow

src/window.cpp:3402–3410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3400}
3401
3402void ReInitWindow(Window *w, bool zoom_changed)
3403{
3404 if (w == nullptr) return;
3405 if (zoom_changed) {
3406 w->nested_root->AdjustPaddingForZoom();
3407 w->UpdateQueryStringSize();
3408 }
3409 w->ReInit();
3410}
3411
3412/** Re-initialize all windows. */
3413void ReInitAllWindows(bool zoom_changed)

Callers 1

ReInitAllWindowsFunction · 0.85

Calls 3

AdjustPaddingForZoomMethod · 0.80
UpdateQueryStringSizeMethod · 0.80
ReInitMethod · 0.80

Tested by

no test coverage detected