summaryrefslogtreecommitdiff
path: root/crates/typst-pdf
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-pdf
parent897447e8593f00971de3a966d3fb23cf2b1e0f92 (diff)
Remove `a` suffix from Rgba and LinearRgba (#2691)
Diffstat (limited to 'crates/typst-pdf')
-rw-r--r--crates/typst-pdf/src/color.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-pdf/src/color.rs b/crates/typst-pdf/src/color.rs
index 0de02307..4c2f6183 100644
--- a/crates/typst-pdf/src/color.rs
+++ b/crates/typst-pdf/src/color.rs
@@ -325,7 +325,7 @@ impl PaintEncode for Color {
let [r, g, b, _] = ColorSpace::LinearRgb.encode(*self);
ctx.content.set_fill_color([r, g, b]);
}
- Color::Rgba(_) => {
+ Color::Rgb(_) => {
ctx.parent.colors.srgb(&mut ctx.parent.alloc);
ctx.set_fill_color_space(SRGB);
@@ -379,7 +379,7 @@ impl PaintEncode for Color {
let [r, g, b, _] = ColorSpace::LinearRgb.encode(*self);
ctx.content.set_stroke_color([r, g, b]);
}
- Color::Rgba(_) => {
+ Color::Rgb(_) => {
ctx.parent.colors.srgb(&mut ctx.parent.alloc);
ctx.set_stroke_color_space(SRGB);