parent
8c86de7f8c
commit
7a52508a3b
1 changed files with 6 additions and 6 deletions
|
@ -772,8 +772,8 @@ const dream_generate_callback = async (bb, resolution, state) => {
|
||||||
bbCtx.globalCompositeOperation = "destination-in";
|
bbCtx.globalCompositeOperation = "destination-in";
|
||||||
bbCtx.drawImage(
|
bbCtx.drawImage(
|
||||||
maskPaintCanvas,
|
maskPaintCanvas,
|
||||||
bb.x + maskPaintLayer.origin.x,
|
bb.x,
|
||||||
bb.y + maskPaintLayer.origin.y,
|
bb.y,
|
||||||
bb.w,
|
bb.w,
|
||||||
bb.h,
|
bb.h,
|
||||||
0,
|
0,
|
||||||
|
@ -800,8 +800,8 @@ const dream_generate_callback = async (bb, resolution, state) => {
|
||||||
bbCtx.globalCompositeOperation = "destination-out"; // ???
|
bbCtx.globalCompositeOperation = "destination-out"; // ???
|
||||||
bbCtx.drawImage(
|
bbCtx.drawImage(
|
||||||
maskPaintCanvas,
|
maskPaintCanvas,
|
||||||
bb.x + maskPaintLayer.origin.x,
|
bb.x,
|
||||||
bb.y + maskPaintLayer.origin.y,
|
bb.y,
|
||||||
bb.w,
|
bb.w,
|
||||||
bb.h,
|
bb.h,
|
||||||
0,
|
0,
|
||||||
|
@ -924,8 +924,8 @@ const dream_img2img_callback = (bb, resolution, state) => {
|
||||||
bbCtx.globalCompositeOperation = "destination-out";
|
bbCtx.globalCompositeOperation = "destination-out";
|
||||||
bbCtx.drawImage(
|
bbCtx.drawImage(
|
||||||
maskPaintCanvas,
|
maskPaintCanvas,
|
||||||
bb.x + maskPaintLayer.origin.x,
|
bb.x,
|
||||||
bb.y + maskPaintLayer.origin.y,
|
bb.y,
|
||||||
bb.w,
|
bb.w,
|
||||||
bb.h,
|
bb.h,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue