Lines Matching defs:sx
34 u_int sx;
75 screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
77 s->grid = grid_create(sx, sy, hlimit);
288 screen_resize_cursor(struct screen *s, u_int sx, u_int sy, int reflow,
297 __func__, sx, sy, screen_size_x(s), screen_size_y(s), s->cx, s->cy,
300 if (sx < 1)
301 sx = 1;
305 if (sx != screen_size_x(s)) {
306 s->grid->sx = sx;
315 screen_reflow(s, sx, &cx, &cy, cursor);
334 screen_resize(struct screen *s, u_int sx, u_int sy, int reflow)
336 screen_resize_cursor(s, sx, sy, reflow, 1, 1);
427 screen_set_selection(struct screen *s, u_int sx, u_int sy,
438 s->sel->sx = sx;
490 if (sel->ex < sel->sx) {
495 if (px > sel->sx)
498 /* Selection start (sx) is on the left. */
499 if (px < sel->sx)
515 if (py == sel->sy && px < sel->sx)
533 xx = sel->sx - 1;
535 xx = sel->sx;
536 if (py == sel->sy && (sel->sx == 0 || px > xx))
543 if (sel->ex < sel->sx) {
546 xx = sel->sx - 1;
548 xx = sel->sx;
552 /* selection start (sx) is on the left */
557 if (px < sel->sx || px > xx)
613 u_int sx, sy;
617 sx = screen_size_x(s);
620 s->saved_grid = grid_create(sx, sy, 0);
628 grid_view_clear(s->grid, 0, 0, sx, sy, 8);
638 u_int sx = screen_size_x(s), sy = screen_size_y(s);
645 screen_resize(s, s->saved_grid->sx, s->saved_grid->sy, 0);
677 screen_resize(s, sx, sy, 1);