mirror of
https://github.com/penpot/penpot.git
synced 2026-10-31 15:00:32 +00:00
🐛 Hard-clip tile atlas blit to avoid seam hairlines (#11639)
AA clip on the Current→atlas blit softens shared tile edges so the canvas background shows through as 1px lines at the 512px grid when tiles are composed with SrcOver. Closes #11638
This commit is contained in:
parent
32ed9b5a08
commit
ffad71bdc5
@ -40,7 +40,9 @@ fn draw_surface_src_rect_to_dst(
|
||||
return;
|
||||
}
|
||||
to_canvas.save();
|
||||
to_canvas.clip_rect(dst, None, true);
|
||||
// Hard clip: AA softens shared tile edges so the backbuffer background
|
||||
// shows through as 1px seams when tiles are composed with SrcOver.
|
||||
to_canvas.clip_rect(dst, None, false);
|
||||
let sx = dst.width() / src.width();
|
||||
let sy = dst.height() / src.height();
|
||||
to_canvas.translate((dst.left, dst.top));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user