read fix - hdr problems

This commit is contained in:
Jindra Petřík
2016-11-28 19:19:46 +01:00
parent f48a5ff08a
commit 1fa6a69988
2 changed files with 9 additions and 5 deletions

View File

@@ -620,23 +620,23 @@ public class IggyFile implements StructureInterface {
}
public long getSwfXMin(int swfIndex) {
return headers.get(swfIndex).getXMin();
return iggySwfs.get(swfIndex).getHdr().getXMin();
}
public long getSwfYMin(int swfIndex) {
return headers.get(swfIndex).getYMin();
return iggySwfs.get(swfIndex).getHdr().getYMin();
}
public long getSwfXMax(int swfIndex) {
return headers.get(swfIndex).getXMax();
return iggySwfs.get(swfIndex).getHdr().getXMax();
}
public long getSwfYMax(int swfIndex) {
return headers.get(swfIndex).getYMax();
return iggySwfs.get(swfIndex).getHdr().getYMax();
}
public float getSwfFrameRate(int swfIndex) {
return headers.get(swfIndex).getFrameRate();
return iggySwfs.get(swfIndex).getHdr().getFrameRate();
}
//WIP

View File

@@ -41,6 +41,10 @@ public class IggySwf implements StructureInterface {
private List<Long> font_add_off = new ArrayList<>();
private List<Long> font_add_size = new ArrayList<>();
public IggyFlashHeader64 getHdr() {
return hdr;
}
public void replaceFontTag(int fontIndex, IggyFont newFont) throws IOException {
long newLen;
byte newData[];