Skip to content

Commit aa302db

Browse files
committed
fix missing demultiplied
1 parent 5341fd0 commit aa302db

18 files changed

+6
-2
lines changed

takumi/src/rendering/canvas.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,12 @@ impl Canvas {
356356
}
357357

358358
pub(crate) fn into_inner(self) -> RgbaImage {
359-
RgbaImage::from_raw(self.image.width(), self.image.height(), self.image.take())
360-
.unwrap_or_else(|| unreachable!())
359+
RgbaImage::from_raw(
360+
self.image.width(),
361+
self.image.height(),
362+
self.image.take_demultiplied(),
363+
)
364+
.unwrap_or_else(|| unreachable!())
361365
}
362366

363367
pub(crate) fn recycle_offscreen_image(&mut self, mut image: Pixmap) {
-636 Bytes
Loading
72.9 KB
Loading
-748 Bytes
Loading
13 KB
Loading
136 Bytes
Loading
-286 Bytes
Loading
-190 Bytes
Loading
-2.58 KB
Loading
-362 Bytes
Loading

0 commit comments

Comments
 (0)