mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix #2355 Screenshot model crops out bottom and rightmost pixel row
This commit is contained in:
parent
d9b5f077a0
commit
2687a297a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user