cursor: Use the right scan-line length when width != stride
parent
cb282c57c4
commit
afc0f018da
|
@ -64,7 +64,7 @@ int cursor_encode(struct vec* dst, struct rfb_pixel_format* pixfmt,
|
||||||
for (int y = 0; y < image->height; ++y) {
|
for (int y = 0; y < image->height; ++y) {
|
||||||
pixel32_to_cpixel(dstdata + y * bpp * image->width, pixfmt,
|
pixel32_to_cpixel(dstdata + y * bpp * image->width, pixfmt,
|
||||||
(uint32_t*)image->addr + y * image->stride,
|
(uint32_t*)image->addr + y * image->stride,
|
||||||
&srcfmt, bpp, size);
|
&srcfmt, bpp, image->width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue