mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637)
This commit is contained in:
parent
465f52e7ce
commit
c149d4d75e
2 changed files with 3 additions and 6 deletions
|
@ -127,12 +127,7 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport,
|
|||
|
||||
ring.appendChild(canvas);
|
||||
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.save();
|
||||
ctx.fillStyle = 'rgb(255, 255, 255)';
|
||||
ctx.fillRect(0, 0, this.canvasWidth, this.canvasHeight);
|
||||
ctx.restore();
|
||||
return ctx;
|
||||
return canvas.getContext('2d');
|
||||
};
|
||||
|
||||
this.drawingRequired = function thumbnailViewDrawingRequired() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue