cleanup
This commit is contained in:
parent
d38a5488d4
commit
07f8145165
4
pdf.js
4
pdf.js
@ -4,7 +4,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var ERRORS = 0, WARNINGS = 1, TODOS = 5;
|
var ERRORS = 0, WARNINGS = 1, TODOS = 5;
|
||||||
var verbosity = TODOS;
|
var verbosity = WARNINGS;
|
||||||
|
|
||||||
function log(msg) {
|
function log(msg) {
|
||||||
if (console && console.log)
|
if (console && console.log)
|
||||||
@ -4194,7 +4194,7 @@ var CanvasGraphics = (function() {
|
|||||||
|
|
||||||
// TODO: hack to avoid OOM, remove then pattern code is fixed
|
// TODO: hack to avoid OOM, remove then pattern code is fixed
|
||||||
if (Math.abs(width) > 8192 || Math.abs(height) > 8192)
|
if (Math.abs(width) > 8192 || Math.abs(height) > 8192)
|
||||||
return false;
|
return this.makeCssRgb(0, 0, 0);
|
||||||
|
|
||||||
var tmpCanvas = new this.ScratchCanvas(width, height);
|
var tmpCanvas = new this.ScratchCanvas(width, height);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user