From: Charlie Brej Date: Sun, 18 Apr 2010 19:32:27 +0000 (+0100) Subject: [progress-animation] Use buffer fill with buffer instead of with raw data X-Git-Tag: 0.8.3~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9316f97a4feee21c0969e823567b2950d8fc370;p=thirdparty%2Fplymouth.git [progress-animation] Use buffer fill with buffer instead of with raw data --- diff --git a/src/libply-splash-graphics/ply-progress-animation.c b/src/libply-splash-graphics/ply-progress-animation.c index d35cee24..0add5015 100644 --- a/src/libply-splash-graphics/ply-progress-animation.c +++ b/src/libply-splash-graphics/ply-progress-animation.c @@ -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