do not disable disposeOps for pngs.

This commit is contained in:
Christopher Jeffrey 2015-06-28 23:07:25 -07:00
parent 2842f3f6ce
commit b61cda656f
1 changed files with 0 additions and 4 deletions

View File

@ -891,9 +891,6 @@ PNG.prototype.renderFrame = function(bmp, frame, i) {
+ ~~(fc.width !== first.fctl.width) + ~~(fc.width !== first.fctl.width)
+ ~~(fc.height !== first.fctl.height); + ~~(fc.height !== first.fctl.height);
// XXX Disable dispose ops for now.
ops -= fc.disposeOp + (last ? last.fctl.disposeOp : 0);
if (!this._curBmp) { if (!this._curBmp) {
this._curBmp = []; this._curBmp = [];
for (y = 0; y < first.fctl.height; y++) { for (y = 0; y < first.fctl.height; y++) {
@ -907,7 +904,6 @@ PNG.prototype.renderFrame = function(bmp, frame, i) {
} }
if (last && ops) { if (last && ops) {
// XXX Disable dispose ops for now.
if (last.fctl.disposeOp) { if (last.fctl.disposeOp) {
lxo = last.fctl.xOffset; lxo = last.fctl.xOffset;
lyo = last.fctl.yOffset; lyo = last.fctl.yOffset;