mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
修复buffer缩放失败在宽高不同时放大放小时
This commit is contained in:
parent
8c8b8d759c
commit
6e24508749
1 changed files with 4 additions and 5 deletions
9
maomao.c
9
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue