cursor: Use the right scan-line length when width != stride

pull/63/head
Andri Yngvason 2022-02-19 21:50:50 +00:00
parent cb282c57c4
commit afc0f018da
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ int cursor_encode(struct vec* dst, struct rfb_pixel_format* pixfmt,
for (int y = 0; y < image->height; ++y) {
pixel32_to_cpixel(dstdata + y * bpp * image->width, pixfmt,
(uint32_t*)image->addr + y * image->stride,
&srcfmt, bpp, size);
&srcfmt, bpp, image->width);
}
}