We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
matte
1 parent 8904658 commit 3e002e6Copy full SHA for 3e002e6
src/context/page.rs
@@ -116,7 +116,7 @@ impl Page{
116
let mut compositor = PictureRecorder::new();
117
compositor.begin_recording(self.bounds, None);
118
if let Some(output) = compositor.recording_canvas() {
119
- output.clear(matte.unwrap_or(Color::TRANSPARENT));
+ matte.map(|c| output.clear(c));
120
for pict in self.layers.iter(){
121
pict.playback(output);
122
}
0 commit comments