Skip to content

Commit

Permalink
step 1: structs for trantition's internal state
Browse files Browse the repository at this point in the history
  • Loading branch information
LGFae committed Aug 8, 2024
1 parent 81ae449 commit 62557c4
Show file tree
Hide file tree
Showing 2 changed files with 461 additions and 229 deletions.
6 changes: 4 additions & 2 deletions daemon/src/animations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mod anim_barrier;
mod transitions;
use transitions::Transition;

use self::anim_barrier::ArcAnimBarrier;
use self::{anim_barrier::ArcAnimBarrier, transitions::Effect};

///The default thread stack size of 2MiB is way too overkill for our purposes
const STACK_SIZE: usize = 1 << 17; //128KiB
Expand Down Expand Up @@ -63,7 +63,9 @@ impl Animator {
return;
}

Transition::new(wallpapers, dim, transition).execute(img);
let transition = Transition::new(wallpapers, dim, transition);
let mut effect = Effect::new(&transition);
transition.execute(&mut effect, img);
})
.unwrap(); // builder only fails if name contains null bytes
}
Expand Down
Loading

0 comments on commit 62557c4

Please sign in to comment.