var skew1 = 0;
}
var nTransBits = ibit.ub(5);
- var transX = ibit.sb(nTransBits) / 20;
- var transY = ibit.sb(nTransBits) / 20;
+ var transX = ibit.sb(nTransBits);
+ var transY = ibit.sb(nTransBits);
return { scaleX:scaleX, scaleY:scaleY, skew0:skew0, skew1:skew1,
transX:transX, transY:transY
FlappSWFRect.load = function(ibit) {
ibit.a();
var nbit = ibit.ub(5);
- return { xmin: ibit.sb(nbit) / 20,
- xmax: ibit.sb(nbit) / 20,
- ymin: ibit.sb(nbit) / 20,
- ymax: ibit.sb(nbit) / 20 };
+ return { xmin: ibit.sb(nbit),
+ xmax: ibit.sb(nbit),
+ ymin: ibit.sb(nbit),
+ ymax: ibit.sb(nbit) };
};
global.FlappSWFRect = FlappSWFRect;
var x = currentX + deltaX;
var y = currentY + deltaY;
edgetypearray.push('S');
- edges.push(x / 20, y / 20);
+ edges.push(x, y);
currentX = x;
currentY = y;
} else { // Curved Edge (10XXXX)
var anchorX = controlX + anchorDeltaX;
var anchorY = controlY + anchorDeltaY;
edgetypearray.push('C');
- edges.push(controlX / 20, controlY / 20,
- anchorX / 20, anchorY / 20);
+ edges.push(controlX, controlY,
+ anchorX, anchorY);
currentX = anchorX;
currentY = anchorY;
}
}
}
edgetypearray = ['M'];
- edges = [currentX / 20, currentY / 20];
+ edges = [currentX, currentY];
}
}
if (edgetypearray.length > 1) {