* Initialize the viewport of the window. * @param w Window owning the viewport. * @param focus Either the tile index or vehicle ID to focus. * @param zoom Zoom level. */
| 2419 | * @param zoom Zoom level. |
| 2420 | */ |
| 2421 | void NWidgetViewport::InitializeViewport(Window *w, std::variant<TileIndex, VehicleID> focus, ZoomLevel zoom) |
| 2422 | { |
| 2423 | InitializeWindowViewport(w, this->pos_x, this->pos_y, this->current_x, this->current_y, focus, zoom); |
| 2424 | } |
| 2425 | |
| 2426 | /** |
| 2427 | * Update the position and size of the viewport (after eg a resize). |
no test coverage detected