Specify that alpha channel is not premultiplied
This commit is contained in:
parent
21df84b7f4
commit
cf5f4de19e
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue