diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libply/ply-frame-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libply/ply-frame-buffer.c b/src/libply/ply-frame-buffer.c index 31246f5..63199c1 100644 --- a/src/libply/ply-frame-buffer.c +++ b/src/libply/ply-frame-buffer.c @@ -167,8 +167,8 @@ flush_generic (ply_frame_buffer_t *buffer) &device_pixel_value, buffer->bytes_per_pixel); } - offset = row * buffer->row_stride * buffer->bytes_per_pixel; - memcpy (buffer->map_address + offset, row_buffer, + offset = row * buffer->row_stride * buffer->bytes_per_pixel + x1 * buffer->bytes_per_pixel; + memcpy (buffer->map_address + offset, row_buffer + x1 * buffer->bytes_per_pixel, buffer->area_to_flush.width * buffer->bytes_per_pixel); } free (row_buffer); |
