Fix #2355 Screenshot model crops out bottom and rightmost pixel row

This commit is contained in:
JannisX11 2024-05-25 12:50:24 +02:00
parent d9b5f077a0
commit 2687a297a6

View File

@ -101,8 +101,8 @@ class CanvasFrame {
}
}
var trimHeight = bound.bottom - bound.top,
trimWidth = bound.right - bound.left,
var trimHeight = bound.bottom - bound.top + 1,
trimWidth = bound.right - bound.left + 1,
trimmed = this.ctx.getImageData(bound.left, bound.top, trimWidth, trimHeight);
copy.canvas.width = trimWidth;