Specify that alpha channel is not premultiplied

This commit is contained in:
Kirill Chibisov 2024-01-30 18:25:05 +04:00
parent 21df84b7f4
commit cf5f4de19e

View file

@ -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<Vec<u8>>,
width: u16,