lightbox_canvas: Clear canvas with less obfuscation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-05-26 15:44:47 -07:00 committed by Tim Abbott
parent c440fc714d
commit 0ad8fff35d
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ const funcs = {
const w = canvas.width * meta.zoom;
const h = canvas.height * meta.zoom;
canvas.width = canvas.width;
context.clearRect(0, 0, canvas.width, canvas.height);
context.imageSmoothingEnabled = false;
context.drawImage(meta.image, x, y, w, h);