mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: Cut off the overly long layer ending zoom animation
This commit is contained in:
parent
d1cff55348
commit
1eac548ede
1 changed files with 8 additions and 0 deletions
|
|
@ -209,6 +209,14 @@ void layer_scene_buffer_apply_effect(struct wlr_scene_buffer *buffer, int sx,
|
|||
|
||||
struct wlr_surface *surface = scene_surface->surface;
|
||||
|
||||
if (scale_data->width_scale >= 0.99f) {
|
||||
scale_data->width_scale = 1.0f;
|
||||
}
|
||||
|
||||
if (scale_data->height_scale >= 0.99f) {
|
||||
scale_data->height_scale = 1.0f;
|
||||
}
|
||||
|
||||
unsigned int surface_width = surface->current.width;
|
||||
unsigned int surface_height = surface->current.height;
|
||||
surface_width = scale_data->width_scale * surface_width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue