mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Enable bilinear blending for bitmaps
This is slower, but looks a lot nicer. :^)
This commit is contained in:
parent
1c807410cd
commit
a50f4d2fc9
Notes:
sideshowbarker
2024-07-18 03:36:15 +09:00
Author: https://github.com/AtkinsSJ
Commit: a50f4d2fc9
Pull-request: https://github.com/SerenityOS/serenity/pull/10156
Reviewed-by: https://github.com/TobyAsE ✅
3 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ void CanvasRenderingContext2D::draw_image(const HTMLImageElement& image_element,
|
|||
Gfx::FloatRect dst_rect = { x, y, (float)image_element.bitmap()->width(), (float)image_element.bitmap()->height() };
|
||||
auto rect = m_transform.map(dst_rect);
|
||||
|
||||
painter->draw_scaled_bitmap(enclosing_int_rect(rect), *image_element.bitmap(), src_rect);
|
||||
painter->draw_scaled_bitmap(enclosing_int_rect(rect), *image_element.bitmap(), src_rect, 1.0f, Gfx::Painter::ScalingMode::BilinearBlend);
|
||||
}
|
||||
|
||||
void CanvasRenderingContext2D::scale(float sx, float sy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue