mirror of
https://github.com/storytold/winit.git
synced 2026-11-23 04:40:45 +01:00
Specify that alpha channel is not premultiplied
This commit is contained in:
1 parent
21df84b7f4
commit
cf5f4de19e
1 file changed
+2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user