feat: layer zoom and fade animation support

This commit is contained in:
DreamMaoMao 2025-07-12 13:36:45 +08:00
parent 09d33d4412
commit 3e615fc762
5 changed files with 127 additions and 10 deletions

View file

@ -658,16 +658,16 @@ void init_fadeout_client(Client *c) {
} else {
fadeout_cient->current.y =
(fadeout_cient->geom.height -
fadeout_cient->geom.height * zoom_initial_ratio) /
fadeout_cient->geom.height * zoom_end_ratio) /
2;
fadeout_cient->current.x =
(fadeout_cient->geom.width -
fadeout_cient->geom.width * zoom_initial_ratio) /
fadeout_cient->geom.width * zoom_end_ratio) /
2;
fadeout_cient->current.width =
fadeout_cient->geom.width * zoom_initial_ratio;
fadeout_cient->geom.width * zoom_end_ratio;
fadeout_cient->current.height =
fadeout_cient->geom.height * zoom_initial_ratio;
fadeout_cient->geom.height * zoom_end_ratio;
}
fadeout_cient->animation.passed_frames = 0;