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

Function PositionNewsMessage

src/window.cpp:3490–3494  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3488 * @return X coordinate of left edge of the repositioned news message.
3489 */
3490int PositionNewsMessage(Window *w)
3491{
3492 Debug(misc, 5, "Repositioning news message...");
3493 return PositionWindow(w, WC_NEWS_WINDOW, _settings_client.gui.statusbar_pos);
3494}
3495
3496/**
3497 * (Re)position network chat window at the screen.

Callers 3

RelocateAllWindowsFunction · 0.85
NewsWindowMethod · 0.85
v_PositionStatusbarFunction · 0.85

Calls 1

PositionWindowFunction · 0.85

Tested by

no test coverage detected