mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-12 13:30:01 -05:00
feat: layer zoom and fade animation support
This commit is contained in:
parent
09d33d4412
commit
3e615fc762
5 changed files with 127 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue