Fixed: #1669 FILLSTYLE color handling in DefineShape3/4

This commit is contained in:
Jindra Petřík
2021-03-26 21:04:24 +01:00
parent ccedea4d39
commit 6c64dc19e1
2 changed files with 5 additions and 1 deletions

View File

@@ -2599,6 +2599,7 @@ public class SWFInputStream implements AutoCloseable {
} else {
ret.color = readRGB("color");
}
ret.inShape3 = shapeNum >= 3;
endDumpLevel();
return ret;
}
@@ -2668,6 +2669,7 @@ public class SWFInputStream implements AutoCloseable {
ret.color = readRGB("color");
}
}
ret.inShape3 = shapeNum >= 3;
if ((ret.fillStyleType == FILLSTYLE.LINEAR_GRADIENT)
|| (ret.fillStyleType == FILLSTYLE.RADIAL_GRADIENT)
|| (ret.fillStyleType == FILLSTYLE.FOCAL_RADIAL_GRADIENT)) {