From cf5f4de19e64ae9bbe5ff8d85c3ad61a930b0e1b Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 30 Jan 2024 18:25:05 +0400 Subject: [PATCH] Specify that alpha channel is not premultiplied --- src/cursor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cursor.rs b/src/cursor.rs index e1ed4622..b519b579 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -83,6 +83,8 @@ pub struct CustomCursor { impl CustomCursor { /// Creates a new cursor from an rgba buffer. + /// + /// The alpha channel is assumed to be **not** premultiplied. pub fn from_rgba( rgba: impl Into>, width: u16,