diff options
Diffstat (limited to 'canvasWorker.js')
-rw-r--r-- | canvasWorker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/canvasWorker.js b/canvasWorker.js index 4b1e81b..a869810 100644 --- a/canvasWorker.js +++ b/canvasWorker.js @@ -85,7 +85,6 @@ self.onmessage = (msg) => { draw = initGL(); } else { [color, x, y, width, height] = msg.data; - if (width < 2 || height < 2) return; draw([x, y + height, x + width, y + height, x + width, y, x, y], color); } }; @@ -98,6 +97,7 @@ self.onmessage = (msg) => { // gl = canvas.getContext("2d"); // } else { // [color, x, y, width, height] = msg.data; +// if (width < 2 || height < 2) return; // gl.fillStyle = color; // gl.fillRect(x, y, width, height); // } |