From: Charlie Brej Date: Sun, 18 Apr 2010 16:20:52 +0000 (+0100) Subject: [animation] Use fill with buffer function X-Git-Tag: 0.8.3~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c63590c0687d66b7c70c566ced9227007cbe2f0;p=thirdparty%2Fplymouth.git [animation] Use fill with buffer function --- diff --git a/src/libply-splash-graphics/ply-animation.c b/src/libply-splash-graphics/ply-animation.c index 76f822a0..1fa78b8b 100644 --- a/src/libply-splash-graphics/ply-animation.c +++ b/src/libply-splash-graphics/ply-animation.c @@ -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