From 6e2450874952f6405ae87a422c043ac1dc03dc3f Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 20 Feb 2025 08:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbuffer=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=9C=A8=E5=AE=BD=E9=AB=98=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=94=BE=E5=A4=A7=E6=94=BE=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/maomao.c b/maomao.c index 93a1e290..623ce547 100644 --- a/maomao.c +++ b/maomao.c @@ -875,9 +875,10 @@ void client_apply_clip(Client *c) { } animationScale scale_data; - scale_data.width = clip_box.width - 2*c->bw; - scale_data.height = clip_box.height -2*c->bw; - + scale_data.width = clip_box.width - c->bw; + scale_data.height = clip_box.height -c->bw; + wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box); + apply_border(c, clip_box, offset); if(c->animation.running) { scale_data.width_scale = (float)clip_box.width/c->current.width; scale_data.height_scale = (float)clip_box.height/c->current.height; @@ -887,8 +888,6 @@ void client_apply_clip(Client *c) { scale_data.height_scale = 1.0; buffer_set_size(c, scale_data); } - wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box); - apply_border(c, clip_box, offset); } bool client_draw_frame(Client *c) {