fix border mask

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-11-25 19:29:50 -03:00
parent 72ebe5ba21
commit bc19de9c4e
No known key found for this signature in database
GPG key ID: F369E3EA50A0DEEE

View file

@ -183,7 +183,7 @@ const dream_img2img_callback = (evn, state) => {
auxCtx.drawImage(maskPaintCanvas, bb.x, bb.y, bb.w, bb.h, 0, 0, bb.w, bb.h); auxCtx.drawImage(maskPaintCanvas, bb.x, bb.y, bb.w, bb.h, 0, 0, bb.w, bb.h);
// Border Mask // Border Mask
if (state.useBorderMask) { if (state.borderMaskSize > 0) {
auxCtx.fillStyle = "#000F"; auxCtx.fillStyle = "#000F";
auxCtx.fillRect(0, 0, state.borderMaskSize, bb.h); auxCtx.fillRect(0, 0, state.borderMaskSize, bb.h);
auxCtx.fillRect(0, 0, bb.w, state.borderMaskSize); auxCtx.fillRect(0, 0, bb.w, state.borderMaskSize);