MORPHGRADIENT issue fixed (?)

This commit is contained in:
Honfika
2013-09-05 16:36:24 +02:00
parent 59e106091e
commit 64ad67edb7
3 changed files with 4 additions and 1 deletions

View File

@@ -2289,6 +2289,8 @@ public class SWFInputStream extends InputStream {
public MORPHGRADIENT readMORPHGRADIENT() throws IOException {
MORPHGRADIENT ret = new MORPHGRADIENT();
int numGradients = (int) readUI8();
ret.numGradientsExtra = numGradients & 0xf0; //some extra data. Are these the same as in GRADIENT or just obfuscator junk???
numGradients = numGradients & 0x0f;
ret.gradientRecords = new MORPHGRADRECORD[numGradients];
for (int i = 0; i < numGradients; i++) {
ret.gradientRecords[i] = readMORPHGRADRECORD();