]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[animation] Use fill with buffer function
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 16:20:52 +0000 (17:20 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 16:20:52 +0000 (17:20 +0100)
src/libply-splash-graphics/ply-animation.c

index 76f822a01fd8a94fcc26f93a3125449b11828e74..1fa78b8b6d38f0e16a7cf9b77667f8fb02e932ca 100644 (file)
@@ -378,11 +378,10 @@ ply_animation_draw_area (ply_animation_t    *animation,
   frame_index = MIN(animation->frame_number, number_of_frames - 1);
 
   frames = (ply_pixel_buffer_t * const *) ply_array_get_elements (animation->frames);
-  frame_data = ply_pixel_buffer_get_argb32_data (frames[frame_index]);
-
-  ply_pixel_buffer_fill_with_argb32_data (buffer,
-                                          &animation->frame_area,
-                                          frame_data);
+  ply_pixel_buffer_fill_with_buffer (buffer,
+                                     frames[frame_index],
+                                     animation->frame_area.x,
+                                     animation->frame_area.y);
 }
 
 long