瀏覽代碼

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.
Aliaksandr Kalenik 1 年之前
父節點
當前提交
7855d4a8f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibWeb/Painting/PaintableBox.cpp

+ 1 - 1
Userland/Libraries/LibWeb/Painting/PaintableBox.cpp

@@ -723,7 +723,7 @@ void PaintableWithLines::paint(PaintContext& context, PaintPhase phase) const
     if (should_clip_overflow) {
     if (should_clip_overflow) {
         context.recording_painter().restore();
         context.recording_painter().restore();
         if (corner_clip_id.has_value()) {
         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 = {};
             corner_clip_id = {};
         }
         }
         context.recording_painter().restore();
         context.recording_painter().restore();