From: Ray Strode Date: Mon, 11 Jun 2007 16:27:50 +0000 (-0400) Subject: when copying an image to the frame buffer always read from the original width, X-Git-Tag: 0.1.0~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab8bfddfdb415c38e41aad56a04d9ee8d14b0de2;p=thirdparty%2Fplymouth.git when copying an image to the frame buffer always read from the original width, even if the image gets clipped --- diff --git a/src/libply/ply-frame-buffer.c b/src/libply/ply-frame-buffer.c index 78f929b1..9f13fea3 100644 --- a/src/libply/ply-frame-buffer.c +++ b/src/libply/ply-frame-buffer.c @@ -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),