summaryrefslogtreecommitdiffstats
path: root/src/libply
diff options
context:
space:
mode:
authorRay Strode <halfline@gmail.com>2008-06-02 17:52:07 -0400
committerRay Strode <rstrode@redhat.com>2008-06-02 17:54:29 -0400
commite79b8a7ec9158ef6b3bf7a9706b774e5cf77cd73 (patch)
treee380984250747cacd8a9c8509ff7089439aa687a /src/libply
parent1e03a9e52dbb9db5ccb5d64811939f23872a6487 (diff)
downloadplymouth-e79b8a7ec9158ef6b3bf7a9706b774e5cf77cd73.tar.gz
plymouth-e79b8a7ec9158ef6b3bf7a9706b774e5cf77cd73.tar.xz
plymouth-e79b8a7ec9158ef6b3bf7a9706b774e5cf77cd73.zip
Reintroduce fix from eddf693c9ba1efd5fcc4af7ec03a2c3386d4b649
It got dropped accidentally in commit 6e5fe71076fe38e5236f68d4c05dcc5bcbc4dbd7 since the function the fix happened in was renamed.
Diffstat (limited to 'src/libply')
-rw-r--r--src/libply/ply-frame-buffer.c4
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);