* Resizes the geoscape. */
| 2083 | * Resizes the geoscape. |
| 2084 | */ |
| 2085 | void Globe::resize() |
| 2086 | { |
| 2087 | Surface *surfaces[4] = {this, _markers, _countries, _radars}; |
| 2088 | int width = Options::baseXGeoscape - 64; |
| 2089 | int height = Options::baseYGeoscape; |
| 2090 | |
| 2091 | for (int i = 0; i < 4; ++i) |
| 2092 | { |
| 2093 | surfaces[i]->setWidth(width); |
| 2094 | surfaces[i]->setHeight(height); |
| 2095 | surfaces[i]->invalidate(); |
| 2096 | } |
| 2097 | _clipper->Wxrig = width; |
| 2098 | _clipper->Wybot = height; |
| 2099 | _cenX = width / 2; |
| 2100 | _cenY = height / 2; |
| 2101 | setupRadii(width, height); |
| 2102 | invalidate(); |
| 2103 | } |
| 2104 | |
| 2105 | /* |
| 2106 | * Set up the Radius of earth at the various zoom levels. |
no test coverage detected