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

Method setHeight

src/Battlescape/Map.cpp:1526–1532  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1524 * @param height the new base screen height.
1525 */
1526void Map::setHeight(int height)
1527{
1528 Surface::setHeight(height);
1529 _visibleMapHeight = height - ICON_HEIGHT;
1530 _message->setHeight((_visibleMapHeight < 200)? _visibleMapHeight : 200);
1531 _message->setY((_visibleMapHeight - _message->getHeight()) / 2);
1532}
1533/*
1534 * Special handling for setting the width of the map viewport.
1535 * @param width the new base screen width.

Callers 1

resizeMethod · 0.45

Calls 2

setYMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected