From cf36b8c5ba212ee955a82e84c066bd5d1f504748 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 1 Aug 2025 16:59:55 +0800 Subject: [PATCH] format code --- src/animation/client.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index bd45a27..1188d2a 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -401,8 +401,8 @@ void client_apply_clip(Client *c, float factor) { wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box); buffer_set_effect(c, (BufferData){1.0f, 1.0f, clip_box.width, - clip_box.height, opacity, opacity, - true}); + clip_box.height, opacity, opacity, + true}); return; } @@ -467,7 +467,8 @@ void client_apply_clip(Client *c, float factor) { buffer_data.width = clip_box.width; buffer_data.height = clip_box.height; buffer_data.width_scale = (float)buffer_data.width / acutal_surface_width; - buffer_data.height_scale = (float)buffer_data.height / acutal_surface_height; + buffer_data.height_scale = + (float)buffer_data.height / acutal_surface_height; buffer_data.percent = percent; buffer_data.opacity = opacity; @@ -475,7 +476,8 @@ void client_apply_clip(Client *c, float factor) { buffer_data.width_scale = 1.0; buffer_data.height_scale = 1.0; } else { - buffer_data.width_scale = (float)buffer_data.width / acutal_surface_width; + buffer_data.width_scale = + (float)buffer_data.width / acutal_surface_width; buffer_data.height_scale = (float)buffer_data.height / acutal_surface_height; }