mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 08:06:30 +00:00
[common] framebuffer: fix copy when source and dest pitch differs
We used to increment the source buffer index by width * bpp, not by pitch. This is incorrect and the root cause behind #670. This is a regression that appeared in 196050bd2381f4d7dbf6149c3347932951a47ebf.
This commit is contained in:
parent
2ea84cd07e
commit
aff3bff8b0
@ -99,7 +99,7 @@ bool framebuffer_read(const FrameBuffer * frame, void * restrict dst,
|
||||
return false;
|
||||
|
||||
memcpy(d, frame->data + rp, dstpitch);
|
||||
rp += linewidth;
|
||||
rp += pitch;
|
||||
d += dstpitch;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user