Skip to content

Commit 181a30d

Browse files
committed
Height calculation was wrong for udp rx.
1 parent 4ea10cf commit 181a30d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/matrix-udp-rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ main(
237237
{
238238
for (unsigned y = 0 ; y < height ; y++)
239239
{
240-
uint32_t * out = &fb[(height*frame_part + y)*width + x];
240+
uint32_t * out = &fb[(height/2*frame_part + y)*width + x];
241241
const uint8_t * in = &buf[1 + 3*(y*width + x)];
242242

243243
uint8_t r = in[0];

0 commit comments

Comments
 (0)