Lines Matching refs:y
34 int x, y;
38 y = win->_cury;
40 fprintf(outf, "ADDCH('%c') at (%d, %d)\n", c, y, x);
51 fprintf(outf, "ADDCH: 1: y = %d, x = %d, firstch = %d,"
52 " lastch = %d\n", y, x, win->_firstch[y],
53 win->_lastch[y]);
57 set_ch(win, y, x, c);
58 win->_y[y][x++] = c;
62 if (++y >= win->_maxy)
65 --y;
71 fprintf(outf, "ADDCH: 2: y = %d, x = %d, firstch = %d,"
72 " lastch = %d\n", y, x, win->_firstch[y],
73 win->_lastch[y]);
90 win->_cury = (short)y;
100 set_ch(WINDOW *win, int y, int x, int ch)
103 fprintf(outf, "SET_CH(%0.2o, %d, %d)\n", win, y, x);
105 if (win->_y[y][x] != ch) {
107 if (win->_firstch[y] == _NOCHANGE)
108 win->_firstch[y] = win->_lastch[y] = (short)x;
109 else if (x < win->_firstch[y])
110 win->_firstch[y] = (short)x;
111 else if (x > win->_lastch[y])
112 win->_lastch[y] = (short)x;
115 win->_firstch[y], win->_lastch[y],
116 win->_firstch[y] - win->_ch_off,
117 win->_lastch[y] - win->_ch_off);