X-Git-Url: https://git.kernelconcepts.de/?p=metawatch.git;a=blobdiff_plain;f=metawatch.c;h=a285171c3111b3f07533b3fae7ef4d8695b7be2f;hp=a87ac7bd2665c2f9a95ab2da1ebeedffec412f9d;hb=b13e74e7cef18139e924327e23c39c116507a7a2;hpb=114128414399b173f8c6e2070abe31fa35e71f29 diff --git a/metawatch.c b/metawatch.c index a87ac7b..a285171 100644 --- a/metawatch.c +++ b/metawatch.c @@ -387,7 +387,7 @@ void mw_send_bitmap(int mw_fd, unsigned char mode, int width, int height, int of memset(mw_buf, 0, 24); memcpy(mw_buf, (bmapbuf+(y*rowlength)), (rowlength > 12) ? 12 : rowlength); memcpy((mw_buf+12), (bmapbuf+((y+1)*rowlength)), (rowlength > 12) ? 12 : rowlength); - mw_write_buffer(mw_fd, mode, 0, 31+y, mw_buf, 24); + mw_write_buffer(mw_fd, mode, 0, offset+y, mw_buf, 24); } }