]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[image] Supply correct width and height limits to interpolate 0.7.0
authorCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 11 Aug 2009 15:47:37 +0000 (16:47 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 11 Aug 2009 15:47:37 +0000 (16:47 +0100)
The supplied width and height were for the new rather than the old image so
some reads would access pixels beyond the edge of the image.

src/libplybootsplash/ply-image.c

index b0801d09069fc281e94f5783d2df626a79306d3a..32e033c4ab30c56ba744d8c33cdf905639bed192 100644 (file)
@@ -352,7 +352,7 @@ ply_image_resize (ply_image_t *image,
         {
           old_x = x * scale_x;
           new_image->layout.as_pixels[x + y * width] =
-                    ply_image_interpolate (image, width, height, old_x, old_y);
+                    ply_image_interpolate (image, old_width, old_height, old_x, old_y);
         }
     }
   return new_image;