]> git.parisson.com Git - pdf.js.git/commitdiff
fully working faxstreams
authorsbarman <sbarman@L3CWZ5T.(none)>
Sat, 25 Jun 2011 02:07:42 +0000 (19:07 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Sat, 25 Jun 2011 02:07:42 +0000 (19:07 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index c90e35bab013697b76b70f394d6db62c1a11680b..341d8fe06ec99c0a1ffbf808a0a5a3a270749740 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4282,6 +4282,11 @@ var CanvasGraphics = (function() {
                 var mask = 1;
                 var b = 0;
                 for (var i = 0, length = 4 * w * h; i < length; i += 4) {
+                    if (i % (4*w) == 0) {
+                        mask = 1;
+                        b = 0;
+                    }
+
                     mask >>= 1;
                     if (mask <= 0) {
                         b = imgArray[imgIdx++];