gardesk/garbg / 434d22e

Browse files

use scale_image_fast in animation_loop

Authored by espadonne
SHA
434d22ea64a86072c9704d0bf047232dde1311fb
Parents
85f4ab7
Tree
09b7124

1 changed file

StatusFile+-
M garbg/src/daemon/animation_loop.rs 2 2
garbg/src/daemon/animation_loop.rsmodified
@@ -8,7 +8,7 @@ use std::sync::Arc;
8
 use std::time::{Duration, Instant};
8
 use std::time::{Duration, Instant};
9
 
9
 
10
 use crate::config::ScaleMode;
10
 use crate::config::ScaleMode;
11
-use crate::media::{scale_image, AnimatedGif};
11
+use crate::media::{scale_image_fast, AnimatedGif};
12
 use crate::x11::{AnimationRenderer, Connection};
12
 use crate::x11::{AnimationRenderer, Connection};
13
 
13
 
14
 /// Configuration for the animation loop
14
 /// Configuration for the animation loop
@@ -63,7 +63,7 @@ impl AnimationLoop {
63
             .frames()
63
             .frames()
64
             .iter()
64
             .iter()
65
             .map(|frame| {
65
             .map(|frame| {
66
-                scale_image(
66
+                scale_image_fast(
67
                     &frame.image,
67
                     &frame.image,
68
                     screen_width as u32,
68
                     screen_width as u32,
69
                     screen_height as u32,
69
                     screen_height as u32,