mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
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:
1 parent
9df00d0677
commit
092bb76cd6
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user