From cfca5d95bae28e2d55d95db69ef3cfa3c25f23a9 Mon Sep 17 00:00:00 2001 From: seijihariki Date: Sat, 24 Dec 2022 00:48:55 +0000 Subject: [PATCH] Prettified Code! --- js/ui/tool/dream.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 7e90e3d..7f87927 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -922,17 +922,7 @@ const dream_img2img_callback = (bb, resolution, state) => { bbCtx.fillStyle = state.invertMask ? "#FFFF" : "#000F"; bbCtx.fillRect(0, 0, bb.w, bb.h); bbCtx.globalCompositeOperation = "destination-out"; - bbCtx.drawImage( - maskPaintCanvas, - bb.x, - bb.y, - bb.w, - bb.h, - 0, - 0, - bb.w, - bb.h - ); + bbCtx.drawImage(maskPaintCanvas, bb.x, bb.y, bb.w, bb.h, 0, 0, bb.w, bb.h); bbCtx.globalCompositeOperation = "destination-atop"; bbCtx.fillStyle = state.invertMask ? "#000F" : "#FFFF";