mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00: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:
parent
9df00d0677
commit
092bb76cd6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue