Maps: Use bilinear blending for downscaled tiles

Since we divide the width and height of the downscaled tiles by 2,
bilinear blending is identical to box sampling and should be preferred
since it's the simpler one of the two algorithms.
This commit is contained in:
Jelle Raaijmakers 2023-10-02 21:49:09 +02:00
parent 9df00d0677
commit 092bb76cd6

View file

@ -490,7 +490,7 @@ void MapWidget::paint_map(GUI::Painter& painter)
if ((child_tile_y & 1) > 0)
target_rect.translate_by(0, TILE_SIZE / 2);
painter.draw_scaled_bitmap(target_rect, *child_tile.release_value(), tile_source, 1.f, Gfx::Painter::ScalingMode::BoxSampling);
painter.draw_scaled_bitmap(target_rect, *child_tile.release_value(), tile_source, 1.f, Gfx::Painter::ScalingMode::BilinearBlend);
++cached_tiles_used;
}
}