From 7a52508a3becfaebfa9579246b57bd681fb0f1de Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Fri, 23 Dec 2022 21:48:25 -0300 Subject: [PATCH] Fixes #117 Signed-off-by: Victor Seiji Hariki --- js/ui/tool/dream.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index fa19b1a..7e90e3d 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -772,8 +772,8 @@ const dream_generate_callback = async (bb, resolution, state) => { bbCtx.globalCompositeOperation = "destination-in"; bbCtx.drawImage( maskPaintCanvas, - bb.x + maskPaintLayer.origin.x, - bb.y + maskPaintLayer.origin.y, + bb.x, + bb.y, bb.w, bb.h, 0, @@ -800,8 +800,8 @@ const dream_generate_callback = async (bb, resolution, state) => { bbCtx.globalCompositeOperation = "destination-out"; // ??? bbCtx.drawImage( maskPaintCanvas, - bb.x + maskPaintLayer.origin.x, - bb.y + maskPaintLayer.origin.y, + bb.x, + bb.y, bb.w, bb.h, 0, @@ -924,8 +924,8 @@ const dream_img2img_callback = (bb, resolution, state) => { bbCtx.globalCompositeOperation = "destination-out"; bbCtx.drawImage( maskPaintCanvas, - bb.x + maskPaintLayer.origin.x, - bb.y + maskPaintLayer.origin.y, + bb.x, + bb.y, bb.w, bb.h, 0,