mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-23 06:59:51 -05:00
opt: remove useless comment
This commit is contained in:
parent
dc75dca262
commit
ae99718bb5
1 changed files with 0 additions and 3 deletions
3
maomao.c
3
maomao.c
|
|
@ -811,7 +811,6 @@ double find_animation_curve_at(double t, int type) {
|
||||||
return baked_points[up].y;
|
return baked_points[up].y;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 有 bug,只是让上面那根透明了
|
|
||||||
void apply_opacity_to_rect_nodes(Client *c, struct wlr_scene_node *node,
|
void apply_opacity_to_rect_nodes(Client *c, struct wlr_scene_node *node,
|
||||||
double animation_passed) {
|
double animation_passed) {
|
||||||
int offsetx = 0;
|
int offsetx = 0;
|
||||||
|
|
@ -825,8 +824,6 @@ void apply_opacity_to_rect_nodes(Client *c, struct wlr_scene_node *node,
|
||||||
rect->color[3] = (1 - animation_passed) * rect->color[3];
|
rect->color[3] = (1 - animation_passed) * rect->color[3];
|
||||||
wlr_scene_rect_set_color(rect, rect->color);
|
wlr_scene_rect_set_color(rect, rect->color);
|
||||||
|
|
||||||
// TODO: 判断当前窗口是否在屏幕外,如果在屏幕外就不要绘制
|
|
||||||
// 划出的border剪切屏幕之外的,这里底部bttome可以了,左右的还不不对
|
|
||||||
offsetx = c->geom.width - c->animation.current.width;
|
offsetx = c->geom.width - c->animation.current.width;
|
||||||
offsety = c->geom.height - c->animation.current.height;
|
offsety = c->geom.height - c->animation.current.height;
|
||||||
if(node->y > c->geom.y + c->geom.height/2 ){
|
if(node->y > c->geom.y + c->geom.height/2 ){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue