Changed #2206 FB values in MATRIX (scale/rotate) as floats instead of int, -f suffixed parameters in text editor

This commit is contained in:
Jindra Petřík
2024-03-16 12:04:45 +01:00
parent 55a7112f10
commit ece2d537d5
10 changed files with 259 additions and 68 deletions

View File

@@ -1929,15 +1929,15 @@ public class SWFInputStream implements AutoCloseable {
ret.hasScale = readUB(1, "hasScale") == 1;
if (ret.hasScale) {
int NScaleBits = (int) readUB(5, "NScaleBits");
ret.scaleX = (int) readSB(NScaleBits, "scaleX");
ret.scaleY = (int) readSB(NScaleBits, "scaleY");
ret.scaleX = readFB(NScaleBits, "scaleX");
ret.scaleY = readFB(NScaleBits, "scaleY");
ret.nScaleBits = NScaleBits;
}
ret.hasRotate = readUB(1, "hasRotate") == 1;
if (ret.hasRotate) {
int NRotateBits = (int) readUB(5, "NRotateBits");
ret.rotateSkew0 = (int) readSB(NRotateBits, "rotateSkew0");
ret.rotateSkew1 = (int) readSB(NRotateBits, "rotateSkew1");
ret.rotateSkew0 = readFB(NRotateBits, "rotateSkew0");
ret.rotateSkew1 = readFB(NRotateBits, "rotateSkew1");
ret.nRotateBits = NRotateBits;
}
int NTranslateBits = (int) readUB(5, "NTranslateBits");