Skip to content

Commit 1c86e01

Browse files
committed
FIX: embedded test extension not setting size of the created image
before: make image! [0x0 #{000000000000000000000000000000000000}] now: make image! [2x3 #{000000000000000000000000000000000000}]
1 parent 7ad8d38 commit 1c86e01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/os/host-ext-test.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ RXIEXT int RX_Call(int cmd, RXIFRM *frm, void *ctx) {
207207

208208
case 8: //command [{return 2x3 image}]
209209
RXA_TYPE(frm, 1) = RXT_IMAGE;
210-
RXA_SERIES(frm, 1) = RL_MAKE_IMAGE(2, 3);
210+
RXA_IMAGE(frm, 1) = RL_MAKE_IMAGE(2, 3);
211+
RXA_IMAGE_WIDTH(frm, 1) = 2;
212+
RXA_IMAGE_HEIGHT(frm, 1) = 3;
211213
break;
212214

213215
case 9: //command [{test command context struct} blk [block!]]

0 commit comments

Comments
 (0)