Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-23 21:48:25 -03:00
parent 8c86de7f8c
commit 7a52508a3b

View file

@ -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,