mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-02 07:15:55 -04:00
feat: layer zoom and fade animation support
This commit is contained in:
parent
c4ce66334f
commit
2049630ac8
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