summaryrefslogtreecommitdiff
path: root/crates/typst-render
diff options
context:
space:
mode:
authorfrozolotl <44589151+frozolotl@users.noreply.github.com>2023-11-15 13:48:48 +0000
committerGitHub <noreply@github.com>2023-11-15 14:48:48 +0100
commitf56813a7789fc176a6008b4bfc48612509ef95cc (patch)
tree8b006c91def5f8b5151e0e5f86245db199cd2c96 /crates/typst-render
parent897447e8593f00971de3a966d3fb23cf2b1e0f92 (diff)
Remove `a` suffix from Rgba and LinearRgba (#2691)
Diffstat (limited to 'crates/typst-render')
-rw-r--r--crates/typst-render/src/lib.rs4
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)
}