1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:07:34 +00:00

LibAccelGfx+LibWeb: Implement SetClipRect and ClearClipRect commands

This commit is contained in:
Aliaksandr Kalenik 2023-11-13 18:34:55 +01:00 committed by Andreas Kling
parent 9e4d697d23
commit 01d938c77b
5 changed files with 32 additions and 3 deletions

View file

@ -57,15 +57,15 @@ CommandResult PaintingCommandExecutorGPU::draw_scaled_bitmap(Gfx::IntRect const&
return CommandResult::Continue;
}
CommandResult PaintingCommandExecutorGPU::set_clip_rect(Gfx::IntRect const&)
CommandResult PaintingCommandExecutorGPU::set_clip_rect(Gfx::IntRect const& rect)
{
// FIXME
painter().set_clip_rect(rect);
return CommandResult::Continue;
}
CommandResult PaintingCommandExecutorGPU::clear_clip_rect()
{
// FIXME
painter().clear_clip_rect();
return CommandResult::Continue;
}