@Override
public void update (int screenWidth, int screenHeight, boolean centerCamera) {
// Fit min size to the screen.
float worldWidth = minWorldWidth;
float worldHeight = minWorldHeight;
Vector2 scaled = Scaling.fit.apply(worldWidth, worldHeight, screenWidth, screenHeight);
// Extend in the short direction.
int viewportWidth = Math.round(scaled.x);
int viewportHeight = Math.round(scaled.y);
if (viewportWidth < screenWidth) {