mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibGfx: Take filter by reference in Painter::blit_filtered()
This allows reusing the filter rather than moving it into blit_filtered.
This commit is contained in:
parent
378595e8b1
commit
0ef0ad04e1
Notes:
sideshowbarker
2024-07-17 01:46:43 +09:00
Author: https://github.com/MacDue
Commit: 0ef0ad04e1
Pull-request: https://github.com/SerenityOS/serenity/pull/20254
2 changed files with 2 additions and 2 deletions
|
@ -934,7 +934,7 @@ void Painter::blit_with_opacity(IntPoint position, Gfx::Bitmap const& source, In
|
|||
}
|
||||
}
|
||||
|
||||
void Painter::blit_filtered(IntPoint position, Gfx::Bitmap const& source, IntRect const& src_rect, Function<Color(Color)> filter)
|
||||
void Painter::blit_filtered(IntPoint position, Gfx::Bitmap const& source, IntRect const& src_rect, Function<Color(Color)> const& filter)
|
||||
{
|
||||
VERIFY((source.scale() == 1 || source.scale() == scale()) && "blit_filtered only supports integer upsampling");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue