From 27298585d2deba788fd96c1ea4cfb80912d1cde6 Mon Sep 17 00:00:00 2001 From: George Kurelic Date: Thu, 3 Mar 2022 11:24:27 -0600 Subject: [PATCH] prevent duplicate matrix scaling fixes #16 --- src/swf/exporters/SWFLiteExporter.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/swf/exporters/SWFLiteExporter.hx b/src/swf/exporters/SWFLiteExporter.hx index 5a741b4..91cb4c7 100644 --- a/src/swf/exporters/SWFLiteExporter.hx +++ b/src/swf/exporters/SWFLiteExporter.hx @@ -135,8 +135,8 @@ class SWFLiteExporter if (object.placeMatrix != null) { var matrix = object.placeMatrix.matrix; - matrix.tx *= (1 / 20); - matrix.ty *= (1 / 20); + matrix.tx = object.placeMatrix.translateX / 20; + matrix.ty = object.placeMatrix.translateY / 20; frameObject.matrix = matrix; } @@ -556,8 +556,8 @@ class SWFLiteExporter if (placeTag.matrix != null) { var matrix = placeTag.matrix.matrix; - matrix.tx *= (1 / 20); - matrix.ty *= (1 / 20); + matrix.tx = placeTag.matrix.translateX / 20; + matrix.ty = placeTag.matrix.translateY / 20; frameObject.matrix = matrix; } @@ -808,8 +808,8 @@ class SWFLiteExporter symbol.records = records; var matrix = tag.textMatrix.matrix; - matrix.tx *= (1 / 20); - matrix.ty *= (1 / 20); + matrix.tx = tag.textMatrix.translateX / 20; + matrix.ty = tag.textMatrix.translateY / 20; symbol.matrix = matrix;