mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +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
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/gmta
Commit: 092bb76cd6
Pull-request: https://github.com/SerenityOS/serenity/pull/21300
Reviewed-by: https://github.com/bplaat ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue