* Special handling for setting the height of the map viewport. * @param height the new base screen height. */
| 1524 | * @param height the new base screen height. |
| 1525 | */ |
| 1526 | void 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. |