]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Reintroduce fix from eddf693c9ba1efd5fcc4af7ec03a2c3386d4b649
authorRay Strode <halfline@gmail.com>
Mon, 2 Jun 2008 21:52:07 +0000 (17:52 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 2 Jun 2008 21:54:29 +0000 (17:54 -0400)
It got dropped accidentally in commit
6e5fe71076fe38e5236f68d4c05dcc5bcbc4dbd7 since the function the
fix happened in was renamed.

src/libply/ply-frame-buffer.c

index 31246f5ca57d98b9571298efd9cc7265d0e2478d..63199c18e6c773520f1165ea8128ad13f1884a21 100644 (file)
@@ -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);