mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Specify that alpha channel is not premultiplied
This commit is contained in:
@@ -83,6 +83,8 @@ pub struct CustomCursor {
|
|||||||
|
|
||||||
impl CustomCursor {
|
impl CustomCursor {
|
||||||
/// Creates a new cursor from an rgba buffer.
|
/// Creates a new cursor from an rgba buffer.
|
||||||
|
///
|
||||||
|
/// The alpha channel is assumed to be **not** premultiplied.
|
||||||
pub fn from_rgba(
|
pub fn from_rgba(
|
||||||
rgba: impl Into<Vec<u8>>,
|
rgba: impl Into<Vec<u8>>,
|
||||||
width: u16,
|
width: u16,
|
||||||
|
|||||||
Reference in New Issue
Block a user