From e50ddf8f1a2a66a331e49fbbbaf943f3060f5446 Mon Sep 17 00:00:00 2001 From: jrmoulton Date: Thu, 27 Feb 2025 23:25:32 -0700 Subject: [PATCH] fix transparency on macOS --- src/backends/cg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/cg.rs b/src/backends/cg.rs index 3e3cbe4..9391022 100644 --- a/src/backends/cg.rs +++ b/src/backends/cg.rs @@ -322,8 +322,8 @@ impl BufferInterface for BufferImpl<'_, 32, self.imp.width * 4, Some(&self.imp.color_space.0), - // TODO: This looks incorrect! - CGBitmapInfo::ByteOrder32Little | CGBitmapInfo(CGImageAlphaInfo::NoneSkipFirst.0), + CGBitmapInfo::ByteOrder32Little + | CGBitmapInfo(CGImageAlphaInfo::PremultipliedFirst.0), Some(&data_provider), ptr::null(), false,