The rasp Zero has red/blue inverted
This commit is contained in:
parent
a4b7b9ed85
commit
44b38071fc
1 changed files with 2 additions and 2 deletions
4
vloed.c
4
vloed.c
|
|
@ -135,9 +135,9 @@ int main(int argc, char* argv[])
|
||||||
//printf("%d %d %d %d %d %d\n", x, y, packet[i ], packet[i+1], packet[i+2], packet[i+3]);
|
//printf("%d %d %d %d %d %d\n", x, y, packet[i ], packet[i+1], packet[i+2], packet[i+3]);
|
||||||
if(x < vinfo.xres && y < vinfo.yres){
|
if(x < vinfo.xres && y < vinfo.yres){
|
||||||
pix_offset = bpp * x + y * finfo.line_length;
|
pix_offset = bpp * x + y * finfo.line_length;
|
||||||
fbp[pix_offset++] = packet[i+4];
|
fbp[pix_offset++] = packet[i+6];
|
||||||
fbp[pix_offset++] = packet[i+5];
|
fbp[pix_offset++] = packet[i+5];
|
||||||
fbp[pix_offset] = packet[i+6];
|
fbp[pix_offset] = packet[i+4];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue