]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[image] Allow access to the internal image buffer
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 18:24:08 +0000 (19:24 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 18:24:08 +0000 (19:24 +0100)
Adds ply_image_convert_get_buffer to get the image buffer without destroying
the image. Forgot to add the .c.

src/libply-splash-graphics/ply-image.c

index fc85dd13801d9d81e859b49de762da8013b6b728..562210d3a63e6f60a3cba73ab7da3e416c58c2f0 100644 (file)
@@ -255,6 +255,12 @@ ply_image_rotate (ply_image_t *image,
   return new_image;
 }
 
+ply_pixel_buffer_t *
+ply_image_convert_get_buffer (ply_image_t *image)
+{
+  return image->buffer;
+}
+
 ply_pixel_buffer_t *
 ply_image_convert_to_pixel_buffer (ply_image_t *image)
 {