diff options
author | nicm <nicm> | 2019-06-26 13:05:06 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-26 13:05:06 +0000 |
commit | 80d76612b8e8a572f96a58bcbd217f81d58d9b0f (patch) | |
tree | a888820017b932ce69c7e6ac47f303afa0755ac4 | |
parent | d83f356218fc9144735667e39c9553bcf905d10b (diff) | |
download | rtmux-80d76612b8e8a572f96a58bcbd217f81d58d9b0f.tar.gz rtmux-80d76612b8e8a572f96a58bcbd217f81d58d9b0f.tar.bz2 rtmux-80d76612b8e8a572f96a58bcbd217f81d58d9b0f.zip |
Fix some comments (top/bottom not left/right).
-rw-r--r-- | tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1060,17 +1060,17 @@ tty_clamp_area(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py, *y = ctx->yoff + py - ctx->oy; *ry = ny; } else if (yoff < ctx->oy && yoff + ny > ctx->oy + ctx->sy) { - /* Both left and right not visible. */ + /* Both top and bottom not visible. */ *j = ctx->oy; *y = 0; *ry = ctx->sy; } else if (yoff < ctx->oy) { - /* Left not visible. */ + /* Top not visible. */ *j = ctx->oy - (ctx->yoff + py); *y = 0; *ry = ny - *j; } else { - /* Right not visible. */ + /* Bottom not visible. */ *j = 0; *y = (ctx->yoff + py) - ctx->oy; *ry = ctx->sy - *y; |