opt: remove useless comment

This commit is contained in:
DreamMaoMao 2025-04-07 18:01:33 +08:00
parent dc75dca262
commit ae99718bb5

View file

@ -811,7 +811,6 @@ double find_animation_curve_at(double t, int type) {
return baked_points[up].y;
}
// 有 bug,只是让上面那根透明了
void apply_opacity_to_rect_nodes(Client *c, struct wlr_scene_node *node,
double animation_passed) {
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];
wlr_scene_rect_set_color(rect, rect->color);
// TODO: 判断当前窗口是否在屏幕外,如果在屏幕外就不要绘制
// 划出的border剪切屏幕之外的这里底部bttome可以了左右的还不不对
offsetx = c->geom.width - c->animation.current.width;
offsety = c->geom.height - c->animation.current.height;
if(node->y > c->geom.y + c->geom.height/2 ){