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

Function PositionStatusbar

src/window.cpp:3479–3483  ·  view source on GitHub ↗

* (Re)position statusbar window at the screen. * @param w Window structure of the statusbar window, may also be \c nullptr. * @return X coordinate of left edge of the repositioned statusbar. */

Source from the content-addressed store, hash-verified

3477 * @return X coordinate of left edge of the repositioned statusbar.
3478 */
3479int PositionStatusbar(Window *w)
3480{
3481 Debug(misc, 5, "Repositioning statusbar...");
3482 return PositionWindow(w, WC_STATUS_BAR, _settings_client.gui.statusbar_pos);
3483}
3484
3485/**
3486 * (Re)position news message window at the screen.

Callers 3

RelocateAllWindowsFunction · 0.85
StatusBarWindowMethod · 0.85
v_PositionStatusbarFunction · 0.85

Calls 1

PositionWindowFunction · 0.85

Tested by

no test coverage detected