mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Use Opaque Canvas where possible
This commit is contained in:
parent
82e6018826
commit
b10aa18b3e
4 changed files with 4 additions and 4 deletions
|
@ -111,7 +111,7 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport) {
|
|||
|
||||
ring.appendChild(canvas);
|
||||
|
||||
var ctx = canvas.getContext('2d');
|
||||
var ctx = canvas.getContext('2d', {alpha: false});
|
||||
ctx.save();
|
||||
ctx.fillStyle = 'rgb(255, 255, 255)';
|
||||
ctx.fillRect(0, 0, this.canvasWidth, this.canvasHeight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue