]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[progress-animation] Remove some now unnecessary area calculations
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 20:17:58 +0000 (21:17 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 18 Apr 2010 20:17:58 +0000 (21:17 +0100)
src/libply-splash-graphics/ply-progress-animation.c

index 406febbd38a92d74f6c7e494f323c20fa3e38551..278af66eb0523f2c0a4ed71f4bfdca193d0f6e06 100644 (file)
@@ -274,11 +274,8 @@ ply_progress_animation_draw (ply_progress_animation_t *progress_animation)
           if (progress_animation->transition == PLY_PROGRESS_ANIMATION_TRANSITION_FADE_OVER)
             {
               ply_pixel_buffer_free (progress_animation->last_rendered_frame);
-              progress_animation->frame_area.width = ply_image_get_width (frames[frame_number - 1]);
-              progress_animation->frame_area.height = ply_image_get_height (frames[frame_number - 1]);
-
-              progress_animation->last_rendered_frame = ply_pixel_buffer_new (progress_animation->frame_area.width,
-                                                                              progress_animation->frame_area.height);
+              progress_animation->last_rendered_frame = ply_pixel_buffer_new (ply_image_get_width (frames[frame_number - 1]),
+                                                                              ply_image_get_height (frames[frame_number - 1]));
               ply_pixel_buffer_fill_with_buffer (progress_animation->last_rendered_frame,
                                                  previous_frame_buffer,
                                                  0,
@@ -287,9 +284,6 @@ ply_progress_animation_draw (ply_progress_animation_t *progress_animation)
           else
             {
               fade_out_opacity = 1.0 - fade_percentage;
-              progress_animation->frame_area.width = ply_image_get_width (frames[frame_number - 1]);
-              progress_animation->frame_area.height = ply_image_get_height (frames[frame_number - 1]);
-
               ply_pixel_buffer_fill_with_buffer_at_opacity (progress_animation->last_rendered_frame,
                                                             previous_frame_buffer,
                                                             0,
@@ -297,8 +291,6 @@ ply_progress_animation_draw (ply_progress_animation_t *progress_animation)
                                                             fade_out_opacity);
             }
 
-          progress_animation->frame_area.width = ply_image_get_width (frames[frame_number]);
-          progress_animation->frame_area.height = ply_image_get_height (frames[frame_number]);
           ply_pixel_buffer_fill_with_buffer_at_opacity (progress_animation->last_rendered_frame,
                                                         current_frame_buffer,
                                                         0,