diff options
Diffstat (limited to 'crates/typst-render')
| -rw-r--r-- | crates/typst-render/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-render/src/lib.rs b/crates/typst-render/src/lib.rs index 4cd00385..0b6edf00 100644 --- a/crates/typst-render/src/lib.rs +++ b/crates/typst-render/src/lib.rs @@ -896,12 +896,12 @@ fn to_sk_paint<'a>( } fn to_sk_color(color: Color) -> sk::Color { - let [r, g, b, a] = color.to_rgba().to_vec4_u8(); + let [r, g, b, a] = color.to_rgb().to_vec4_u8(); sk::Color::from_rgba8(r, g, b, a) } fn to_sk_color_u8_without_alpha(color: Color) -> sk::ColorU8 { - let [r, g, b, _] = color.to_rgba().to_vec4_u8(); + let [r, g, b, _] = color.to_rgb().to_vec4_u8(); sk::ColorU8::from_rgba(r, g, b, 255) } |
