diff --git a/common/src/framebuffer.c b/common/src/framebuffer.c index 351b721e..0d709e3e 100644 --- a/common/src/framebuffer.c +++ b/common/src/framebuffer.c @@ -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; } }