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

Function GameSizeChanged

src/main_gui.cpp:596–603  ·  view source on GitHub ↗

* Size of the application screen changed. * Adapt the game screen-size, re-allocate the open windows, and repaint everything */

Source from the content-addressed store, hash-verified

594 * Adapt the game screen-size, re-allocate the open windows, and repaint everything
595 */
596void GameSizeChanged()
597{
598 _cur_resolution.width = _screen.width;
599 _cur_resolution.height = _screen.height;
600 ScreenSizeChanged();
601 RelocateAllWindows(_screen.width, _screen.height);
602 MarkWholeScreenDirty();
603}

Callers 4

MakeWindowMethod · 0.85
ClientSizeChangedMethod · 0.85
ClientSizeChangedMethod · 0.85
CreateMainSurfaceFunction · 0.85

Calls 3

ScreenSizeChangedFunction · 0.85
RelocateAllWindowsFunction · 0.85
MarkWholeScreenDirtyFunction · 0.85

Tested by

no test coverage detected