From 1b8441dacc055e0c4469e49f7a1c71f4b5d76559 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 28 Aug 2023 16:14:22 +0200 Subject: [PATCH] Don't pass in unused `pageColors` to `CanvasGraphics.endDrawing` (PR 16380 follow-up) This became unnecessary in PR 16380, however we forgot to update one of the API call-sites. --- src/display/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/api.js b/src/display/api.js index 3aa03f159..9030e0743 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -3437,7 +3437,7 @@ class InternalRenderTask { if (this.operatorListIdx === this.operatorList.argsArray.length) { this.running = false; if (this.operatorList.lastChunk) { - this.gfx.endDrawing(this.pageColors); + this.gfx.endDrawing(); InternalRenderTask.#canvasInUse.delete(this._canvas); this.callback();