web: Fix off-center gradient rendering

Regression caused by 223edb9. Write twips value to SVG matrix.
Addresses some incorrect rendering in #437.
This commit is contained in:
Mike Welsh 2020-03-16 02:44:32 -07:00
parent b3b81c5e20
commit 26914d7b62
1 changed files with 6 additions and 6 deletions

View File

@ -791,8 +791,8 @@ fn swf_shape_to_svg(
gradient_matrix.b,
gradient_matrix.c,
gradient_matrix.d,
gradient_matrix.tx,
gradient_matrix.ty
gradient_matrix.tx.get(),
gradient_matrix.ty.get()
),
);
for record in &gradient.records {
@ -839,8 +839,8 @@ fn swf_shape_to_svg(
gradient_matrix.b,
gradient_matrix.c,
gradient_matrix.d,
gradient_matrix.tx,
gradient_matrix.ty
gradient_matrix.tx.get(),
gradient_matrix.ty.get()
),
);
for record in &gradient.records {
@ -891,8 +891,8 @@ fn swf_shape_to_svg(
gradient_matrix.b,
gradient_matrix.c,
gradient_matrix.d,
gradient_matrix.tx,
gradient_matrix.ty
gradient_matrix.tx.get(),
gradient_matrix.ty.get()
),
);
for record in &gradient.records {