mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
LibWeb: Transform blit corner clipping rectangle to device pixels
Rectangle saved in this command is only used to filter by bounding box, so the problem was not very visible before.
This commit is contained in:
parent
3d8349eb88
commit
7855d4a8f5
Notes:
sideshowbarker
2024-07-17 03:14:39 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/7855d4a8f5 Pull-request: https://github.com/SerenityOS/serenity/pull/24450
|
@ -723,7 +723,7 @@ void PaintableWithLines::paint(PaintContext& context, PaintPhase phase) const
|
|||
if (should_clip_overflow) {
|
||||
context.recording_painter().restore();
|
||||
if (corner_clip_id.has_value()) {
|
||||
context.recording_painter().blit_corner_clipping(*corner_clip_id, clip_box.to_type<int>());
|
||||
context.recording_painter().blit_corner_clipping(*corner_clip_id, context.rounded_device_rect(clip_box).to_type<int>());
|
||||
corner_clip_id = {};
|
||||
}
|
||||
context.recording_painter().restore();
|
||||
|
|
Loading…
Reference in a new issue