From 092bb76cd682af0f5c155b68a1875a6c9b2d6a26 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 2 Oct 2023 21:49:09 +0200 Subject: [PATCH] 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. --- Userland/Applications/Maps/MapWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Maps/MapWidget.cpp b/Userland/Applications/Maps/MapWidget.cpp index 1a57839870..5027cbfd29 100644 --- a/Userland/Applications/Maps/MapWidget.cpp +++ b/Userland/Applications/Maps/MapWidget.cpp @@ -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; } }