]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
when copying an image to the frame buffer always read from the original width,
authorRay Strode <rstrode@redhat.com>
Mon, 11 Jun 2007 16:27:50 +0000 (12:27 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 11 Jun 2007 16:27:50 +0000 (12:27 -0400)
even if the image gets clipped

src/libply/ply-frame-buffer.c

index 78f929b18e7116d58e57fd63ad91415aa75a7aff..9f13fea32129e21fa6f9f7fab750e5bddb517dfd 100644 (file)
@@ -651,7 +651,7 @@ ply_frame_buffer_fill_with_argb32_data_at_opacity (ply_frame_buffer_t      *buff
         {
           uint32_t pixel_value;
 
-          pixel_value = data[cropped_area.width * row + column];
+          pixel_value = data[area->width * row + column];
           pixel_value = make_pixel_value_translucent (pixel_value, opacity_as_byte);
           ply_frame_buffer_blend_value_at_pixel (buffer,
                                                  cropped_area.x + (column - x),