diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/COLORMATRIXFILTER.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/COLORMATRIXFILTER.java index 0bcb1a8e8..d291f0d7f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/COLORMATRIXFILTER.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/filters/COLORMATRIXFILTER.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.types.filters; import com.jpexs.decompiler.flash.types.BasicType; @@ -41,13 +42,12 @@ public class COLORMATRIXFILTER extends FILTER { @Override public SerializableImage apply(SerializableImage src) { - float[][] matrix2 = new float[4][4]; + float[][] matrix2 = new float[4][5]; for (int y = 0; y < 4; y++) { - for (int x = 0; x < 4; x++) { + for (int x = 0; x < 5; x++) { matrix2[y][x] = matrix[y * 5 + x]; } } - //matrix2[4][4] = 1; return Filtering.colorMatrix(src, matrix2); }