diff --git a/exec/load/frame.js b/exec/load/frame.js index b4e03f2de210e39784ab4632af8b33de5098f847..526c71e38efb89ece2e753d030f53c769a3acfdb 100644 --- a/exec/load/frame.js +++ b/exec/load/frame.js @@ -518,18 +518,18 @@ Frame.prototype.load = function(filename,width,height) { sauceless_size <<= 8; sauceless_size |= ascii(contents.substr(-36,1)); sauceless_size <<= 8; - sauceless_size |= ascii(contents.substr(-35,1)); + sauceless_size |= ascii(contents.substr(-37,1)); sauceless_size <<= 8; - sauceless_size |= ascii(contents.substr(-34,1)); + sauceless_size |= ascii(contents.substr(-38,1)); - var data_type = ascii(contents.substr(-33,1)); - var file_type = ascii(contents.substr(-32,1)); - var tinfo1 = ascii(contents.substr(-30,1)); + var data_type = ascii(contents.substr(-34,1)); + var file_type = ascii(contents.substr(-33,1)); + var tinfo1 = ascii(contents.substr(-31,1)); tinfo1 <<= 8; - tinfo1 |= ascii(contents.substr(-31,1)); - var tinfo2 = ascii(contents.substr(-28,1)); + tinfo1 |= ascii(contents.substr(-32,1)); + var tinfo2 = ascii(contents.substr(-29,1)); tinfo2 <<= 8; - tinfo2 |= ascii(contents.substr(-29,1)); + tinfo2 |= ascii(contents.substr(-30,1)); switch(data_type) { case 1: switch(file_type) {