MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setWidth

Method setWidth

src/Battlescape/Map.cpp:1537–1542  ·  view source on GitHub ↗

* Special handling for setting the width of the map viewport. * @param width the new base screen width. */

Source from the content-addressed store, hash-verified

1535 * @param width the new base screen width.
1536 */
1537void Map::setWidth(int width)
1538{
1539 int dX = width - getWidth();
1540 Surface::setWidth(width);
1541 _message->setX(_message->getX() + dX / 2);
1542}
1543
1544/*
1545 * Get the hidden movement screen's vertical position.

Callers 1

resizeMethod · 0.45

Calls 2

setXMethod · 0.45
getXMethod · 0.45

Tested by

no test coverage detected