use the same twips/pixel constant everywhere

This commit is contained in:
Honfika
2014-01-29 14:54:21 +01:00
parent 3f2adbf8f6
commit 3f8d038549
30 changed files with 194 additions and 166 deletions
@@ -270,8 +270,8 @@ public class Main {
logger.log(Level.INFO, "== File information ==");
logger.log(Level.INFO, "Size: {0}", Helper.formatFileSize(swf.fileSize));
logger.log(Level.INFO, "Flash version: {0}", swf.version);
int width = (swf.displayRect.Xmax - swf.displayRect.Xmin) / 20;
int height = (swf.displayRect.Ymax - swf.displayRect.Ymin) / 20;
int width = (int) ((swf.displayRect.Xmax - swf.displayRect.Xmin) / SWF.unitDivisor);
int height = (int) ((swf.displayRect.Ymax - swf.displayRect.Ymin) / SWF.unitDivisor);
logger.log(Level.INFO, "Width: {0}", width);
logger.log(Level.INFO, "Height: {0}", height);