mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix conversion of image data slice
This commit is contained in:
parent
2aa16fc731
commit
77a8bc4a1d
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ impl GenericDrawTarget for raqote::DrawTarget {
|
|||
data: unsafe {
|
||||
std::slice::from_raw_parts(
|
||||
v.as_ptr() as *const u32,
|
||||
v.len() * std::mem::size_of::<u8>(),
|
||||
v.len() / std::mem::size_of::<u32>(),
|
||||
)
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue