mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
Revert "LibWeb: Use box sampling instead of bilinear scaling when downscaling"
This reverts commit b79fd3d1a9
.
This commit is contained in:
parent
fb1a151fe3
commit
77db621be5
5 changed files with 6 additions and 13 deletions
|
@ -135,8 +135,7 @@ void VideoPaintable::paint(PaintContext& context, PaintPhase phase) const
|
|||
}
|
||||
|
||||
auto paint_frame = [&](auto const& frame) {
|
||||
auto scaling_mode = to_gfx_scaling_mode(computed_values().image_rendering(), frame->rect(), video_rect.to_type<int>());
|
||||
context.painter().draw_scaled_bitmap(video_rect.to_type<int>(), *frame, frame->rect(), 1.f, scaling_mode);
|
||||
context.painter().draw_scaled_bitmap(video_rect.to_type<int>(), *frame, frame->rect(), 1.0f, to_gfx_scaling_mode(computed_values().image_rendering()));
|
||||
};
|
||||
|
||||
auto paint_transparent_black = [&]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue