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

Function UnInitWindowSystem

src/window.cpp:1881–1890  ·  view source on GitHub ↗

* Close down the windowing system */

Source from the content-addressed store, hash-verified

1879 * Close down the windowing system
1880 */
1881void UnInitWindowSystem()
1882{
1883 UnshowCriticalError();
1884
1885 for (Window *w : Window::Iterate()) w->Close();
1886
1887 Window::DeleteClosedWindows();
1888
1889 assert(_z_windows.empty());
1890}
1891
1892/**
1893 * Reset the windowing system, by means of shutting it down followed by re-initialization

Callers 3

ShutdownGameFunction · 0.85
ResetWindowSystemFunction · 0.85
InitializeGameFunction · 0.85

Calls 3

UnshowCriticalErrorFunction · 0.85
CloseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected