]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[progress-animation] Use buffer fill with buffer instead of with raw data
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 19:32:27 +0000 (20:32 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 19:32:27 +0000 (20:32 +0100)
src/libply-splash-graphics/ply-progress-animation.c

index d35cee24c5d107674ea4bdd74ecf21f031b799bf..0add50156a32e91c87ce012188b5b40071d2b319 100644 (file)
@@ -193,16 +193,13 @@ ply_progress_animation_draw_area (ply_progress_animation_t *progress_animation,
                                   unsigned long             width,
                                   unsigned long             height)
 {
-  uint32_t *frame_data;
-
   if (progress_animation->is_hidden)
     return;
 
-  frame_data = ply_pixel_buffer_get_argb32_data (progress_animation->last_rendered_frame);
-
-  ply_pixel_buffer_fill_with_argb32_data (buffer,
-                                          &progress_animation->frame_area,
-                                          frame_data);
+  ply_pixel_buffer_fill_with_buffer (buffer,
+                                     progress_animation->last_rendered_frame,
+                                     progress_animation->frame_area.x,
+                                     progress_animation->frame_area.y);
 }
 
 void