From 1bb581c4c17cf0b52f27fcc3391ea588ee1839d2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:56:20 -0400 Subject: [PATCH] spelling: interpolation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/com/jpexs/decompiler/flash/SWFInputStream.java | 6 +++--- .../src/com/jpexs/decompiler/flash/SWFOutputStream.java | 6 +++--- .../com/jpexs/decompiler/flash/types/FOCALGRADIENT.java | 4 ++-- .../src/com/jpexs/decompiler/flash/types/GRADIENT.java | 4 ++-- .../jpexs/decompiler/flash/types/MORPHFOCALGRADIENT.java | 6 +++--- .../com/jpexs/decompiler/flash/types/MORPHGRADIENT.java | 8 ++++---- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java index 3e37a0a1c..94b455719 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -3326,9 +3326,9 @@ public class SWFInputStream implements AutoCloseable { MORPHGRADIENT ret = new MORPHGRADIENT(); newDumpLevel(name, "MORPHGRADIENT"); // Despite of documentation (UI8 1-8), there are two fields - // spreadMode and interPolationMode which are same as in GRADIENT + // spreadMode and interpolationMode which are same as in GRADIENT ret.spreadMode = (int) readUB(2, "spreadMode"); - ret.interPolationMode = (int) readUB(2, "interPolationMode"); + ret.interpolationMode = (int) readUB(2, "interpolationMode"); int numGradients = (int) readUB(4, "numGradients"); ret.gradientRecords = new MORPHGRADRECORD[numGradients]; for (int i = 0; i < numGradients; i++) { @@ -3352,7 +3352,7 @@ public class SWFInputStream implements AutoCloseable { MORPHFOCALGRADIENT ret = new MORPHFOCALGRADIENT(); newDumpLevel(name, "MORPHFOCALGRADIENT"); ret.spreadMode = (int) readUB(2, "spreadMode"); - ret.interPolationMode = (int) readUB(2, "interPolationMode"); + ret.interpolationMode = (int) readUB(2, "interpolationMode"); int numGradients = (int) readUB(4, "numGradients"); ret.gradientRecords = new MORPHGRADRECORD[numGradients]; for (int i = 0; i < numGradients; i++) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java index 2b61e9fc7..6cf162479 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java @@ -1818,9 +1818,9 @@ public class SWFOutputStream extends OutputStream { */ public void writeMORPHGRADIENT(MORPHGRADIENT value, int shapeNum) throws IOException { // Despite of documentation (UI8 1-8), there are two fields - // spreadMode and interPolationMode which are same as in GRADIENT + // spreadMode and interpolationMode which are same as in GRADIENT writeUB(2, value.spreadMode); - writeUB(2, value.interPolationMode); + writeUB(2, value.interpolationMode); writeUB(4, value.gradientRecords.length); for (int i = 0; i < value.gradientRecords.length; i++) { writeMORPHGRADRECORD(value.gradientRecords[i]); @@ -1839,7 +1839,7 @@ public class SWFOutputStream extends OutputStream { */ public void writeMORPHFOCALGRADIENT(MORPHFOCALGRADIENT value, int shapeNum) throws IOException { writeUB(2, value.spreadMode); - writeUB(2, value.interPolationMode); + writeUB(2, value.interpolationMode); writeUB(4, value.gradientRecords.length); for (int i = 0; i < value.gradientRecords.length; i++) { writeMORPHGRADRECORD(value.gradientRecords[i]); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FOCALGRADIENT.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FOCALGRADIENT.java index 2bf77869f..82eee574a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FOCALGRADIENT.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/FOCALGRADIENT.java @@ -51,7 +51,7 @@ public class FOCALGRADIENT extends GRADIENT implements Serializable { @Override public MORPHGRADIENT toMorphGradient() { MORPHFOCALGRADIENT morphGradient = new MORPHFOCALGRADIENT(); - morphGradient.interPolationMode = interpolationMode; + morphGradient.interpolationMode = interpolationMode; morphGradient.spreadMode = spreadMode; morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length]; for (int i = 0; i < gradientRecords.length; i++) { @@ -69,7 +69,7 @@ public class FOCALGRADIENT extends GRADIENT implements Serializable { return null; } MORPHFOCALGRADIENT morphGradient = new MORPHFOCALGRADIENT(); - morphGradient.interPolationMode = interpolationMode; + morphGradient.interpolationMode = interpolationMode; morphGradient.spreadMode = spreadMode; morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length]; for (int i = 0; i < gradientRecords.length; i++) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java index 86e0107ef..434e44e38 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/GRADIENT.java @@ -117,7 +117,7 @@ public class GRADIENT implements Serializable { */ public MORPHGRADIENT toMorphGradient() { MORPHGRADIENT morphGradient = new MORPHGRADIENT(); - morphGradient.interPolationMode = interpolationMode; + morphGradient.interpolationMode = interpolationMode; morphGradient.spreadMode = spreadMode; morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length]; for (int i = 0; i < gradientRecords.length; i++) { @@ -141,7 +141,7 @@ public class GRADIENT implements Serializable { } else { morphGradient = new MORPHGRADIENT(); } - morphGradient.interPolationMode = interpolationMode; + morphGradient.interpolationMode = interpolationMode; morphGradient.spreadMode = spreadMode; morphGradient.gradientRecords = new MORPHGRADRECORD[gradientRecords.length]; for (int i = 0; i < gradientRecords.length; i++) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHFOCALGRADIENT.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHFOCALGRADIENT.java index 6c4245745..72a7e89a8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHFOCALGRADIENT.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHFOCALGRADIENT.java @@ -42,7 +42,7 @@ public class MORPHFOCALGRADIENT extends MORPHGRADIENT implements Serializable { public GRADIENT getEndGradient() { FOCALGRADIENT ret = new FOCALGRADIENT(); ret.spreadMode = spreadMode; - ret.interpolationMode = interPolationMode; + ret.interpolationMode = interpolationMode; ret.gradientRecords = new GRADRECORD[gradientRecords.length]; for (int m = 0; m < gradientRecords.length; m++) { ret.gradientRecords[m] = gradientRecords[m].getEndRecord(); @@ -57,7 +57,7 @@ public class MORPHFOCALGRADIENT extends MORPHGRADIENT implements Serializable { public GRADIENT getStartGradient() { FOCALGRADIENT ret = new FOCALGRADIENT(); ret.spreadMode = spreadMode; - ret.interpolationMode = interPolationMode; + ret.interpolationMode = interpolationMode; ret.gradientRecords = new GRADRECORD[gradientRecords.length]; for (int m = 0; m < gradientRecords.length; m++) { ret.gradientRecords[m] = gradientRecords[m].getStartRecord(); @@ -72,7 +72,7 @@ public class MORPHFOCALGRADIENT extends MORPHGRADIENT implements Serializable { public GRADIENT getGradientAt(int ratio) { FOCALGRADIENT ret = new FOCALGRADIENT(); ret.spreadMode = spreadMode; - ret.interpolationMode = interPolationMode; + ret.interpolationMode = interpolationMode; ret.gradientRecords = new GRADRECORD[gradientRecords.length]; for (int m = 0; m < gradientRecords.length; m++) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHGRADIENT.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHGRADIENT.java index 7099839b9..66e0e4622 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHGRADIENT.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/MORPHGRADIENT.java @@ -47,7 +47,7 @@ public class MORPHGRADIENT implements Serializable { @SWFType(value = BasicType.UB, count = 2) @EnumValue(value = INTERPOLATION_RGB_MODE, text = "Normal RGB") @EnumValue(value = INTERPOLATION_LINEAR_RGB_MODE, text = "Linear RGB") - public int interPolationMode; + public int interpolationMode; /** * Gradient records @@ -89,7 +89,7 @@ public class MORPHGRADIENT implements Serializable { public GRADIENT getGradientAt(int ratio) { GRADIENT ret = new GRADIENT(); ret.spreadMode = spreadMode; - ret.interpolationMode = interPolationMode; + ret.interpolationMode = interpolationMode; ret.gradientRecords = new GRADRECORD[gradientRecords.length]; for (int m = 0; m < gradientRecords.length; m++) { @@ -108,7 +108,7 @@ public class MORPHGRADIENT implements Serializable { public GRADIENT getStartGradient() { GRADIENT ret = new GRADIENT(); ret.spreadMode = spreadMode; - ret.interpolationMode = interPolationMode; + ret.interpolationMode = interpolationMode; ret.gradientRecords = new GRADRECORD[gradientRecords.length]; for (int m = 0; m < gradientRecords.length; m++) { ret.gradientRecords[m] = gradientRecords[m].getStartRecord(); @@ -123,7 +123,7 @@ public class MORPHGRADIENT implements Serializable { public GRADIENT getEndGradient() { GRADIENT ret = new GRADIENT(); ret.spreadMode = spreadMode; - ret.interpolationMode = interPolationMode; + ret.interpolationMode = interpolationMode; ret.gradientRecords = new GRADRECORD[gradientRecords.length]; for (int m = 0; m < gradientRecords.length; m++) { ret.gradientRecords[m] = gradientRecords[m].getEndRecord();