Remove unnecessary cast_slice in iced_tiny_skia
This commit is contained in:
parent
c1ff803b8f
commit
151daf95b7
1 changed files with 1 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ impl Pipeline {
|
||||||
.allocate(glyph.cache_key, color, &mut swash)
|
.allocate(glyph.cache_key, color, &mut swash)
|
||||||
{
|
{
|
||||||
let pixmap = tiny_skia::PixmapRef::from_bytes(
|
let pixmap = tiny_skia::PixmapRef::from_bytes(
|
||||||
bytemuck::cast_slice(&buffer),
|
buffer,
|
||||||
placement.width,
|
placement.width,
|
||||||
placement.height,
|
placement.height,
|
||||||
)
|
)
|
||||||
|
|
@ -266,7 +266,6 @@ impl GlyphCache {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Cache glyph rasterization
|
|
||||||
let mut buffer = vec![0u32; glyph_size];
|
let mut buffer = vec![0u32; glyph_size];
|
||||||
|
|
||||||
match image.content {
|
match image.content {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue