Skip to main content

clear_pixmap_region

Function clear_pixmap_region 

Source
fn clear_pixmap_region(dst: &mut Pixmap, rect: PendingClearRect)
Expand description

Zero out a rectangular region in the atlas pixmap.

Necessary because atlas rendering uses SrcOver blending, so stale pixels from evicted glyphs would bleed through if not cleared.