Skip to content

Commit 621eefd

Browse files
committed
allow ChecksumOut to take a rect in begin (peter)
1 parent 3c4cea3 commit 621eefd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testmc/commodettoChecksumOut.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export default class ChecksumOut {
3434
Object.defineProperty(this, "pixelFormat", {value: options.pixelFormat ?? Bitmap.RGB565LE});
3535
}
3636
begin(x, y, width, height) {
37+
if ("object" === typeof x)
38+
({x, y, width, height} = x);
39+
3740
this.#show?.begin(x, y, width, height);
3841

3942
if (!this.#continue)

0 commit comments

Comments
 (0)