Lines Matching refs:wy

86 	int	wx, wy, nc, boty, clby, idby, *hs, curwin;  in wrefresh()  local
173 wy = scrli - 1; in wrefresh()
176 for (; wy >= 0; --wy) { in wrefresh()
182 marks[wy][wx] = 0; in wrefresh()
206 wy = _VIRTTOP; in wrefresh()
208 bnsch = _virtscr->_firstch + wy; in wrefresh()
209 ensch = _virtscr->_lastch + wy; in wrefresh()
211 for (; wy < boty; ++wy, ++bnsch, ++ensch) { in wrefresh()
219 _VIRTTOP = (short)wy; in wrefresh()
225 clby = _getceod(wy, boty); in wrefresh()
233 if (wy == clby) in wrefresh()
234 _useceod(wy, boty); in wrefresh()
237 if (wy == idby) { in wrefresh()
246 _updateln(wy); in wrefresh()
259 wy = _virtscr->_cury; in wrefresh()
261 if (wy != cy || wx != cx) { in wrefresh()
262 (void) mvcur(cy, cx, wy, wx); in wrefresh()
264 cy = (short)wy; in wrefresh()
289 _shove(int wy) in _shove() argument
306 return (_virtscr->_y[wy]); in _shove()
310 wcp = _virtscr->_y[wy]; in _shove()
326 if ((curx >= x) && (cury == wy)) in _shove()
340 ((wy == scrli - 1) && (_ATTR(*(cp - 1)) != A_NORMAL))) { in _shove()
342 if (wy == scrli - 1) in _shove()
346 if (wy == cury) in _shove()
367 _updateln(int wy) in _updateln() argument
374 redraw = (_virtscr->_firstch[wy] == _REDRAW); in _updateln()
375 endns = _ENDNS[wy]; in _updateln()
376 begns = _BEGNS[wy]; in _updateln()
379 if (!redraw && (_virtscr->_lastch[wy] == _BLANK) && (begns >= scrco)) in _updateln()
383 wcp = magic_cookie_glitch <= 0 ? _virtscr->_y[wy] : _shove(wy); in _updateln()
384 scp = curscr->_y[wy]; in _updateln()
391 wx = _virtscr->_firstch[wy]; in _updateln()
392 lastx = _virtscr->_lastch[wy] == _BLANK ? scrco : in _updateln()
393 _virtscr->_lastch[wy] + 1; in _updateln()
431 if (_virtscr->_lastch[wy] == _BLANK) in _updateln()
476 if (magic_cookie_glitch > 0 && wy == scrli - 1 && in _updateln()
480 wy == scrli - 1 && color_attrx == scrco - 1) in _updateln()
500 if (_ATTR(*wp) || _ISMARK1(wy, idcx) || in _updateln()
501 _ISMARK2(wy, idcx)) in _updateln()
555 (void) mvcur(cy, cx, wy, x); in _updateln()
565 cy = (short)wy; in _updateln()
582 if (cy != wy || cx != wx) in _updateln()
583 (void) mvcur(cy, cx, wy, wx); in _updateln()
585 cy = (short)wy; in _updateln()
611 curscr->_cury = (short)wy; in _updateln()
618 _setmark1(wy, wx, NULL); in _updateln()
620 _setmark2(wy, wx, NULL); in _updateln()
669 if ((video_change && !_ISMARK1(wy, in _updateln()
671 !_ISMARK2(wy, color_attrx))) { in _updateln()
678 !_ISMARK1(wy, video_attrx)) { in _updateln()
680 (void) mvcur(wy, wx, in _updateln()
681 wy, video_attrx); in _updateln()
682 _VIDS(_VIDEO(_virtscr->_y[wy] in _updateln()
684 _VIDEO(_virtscr->_y[wy] in _updateln()
686 _setmark1(wy, video_attrx, in _updateln()
692 !_ISMARK2(wy, color_attrx)) { in _updateln()
696 (void) mvcur(wy, tempx, wy, in _updateln()
702 _VIDS(_COLOR(_virtscr->_y[wy] in _updateln()
704 _COLOR(_virtscr->_y[wy] in _updateln()
706 _setmark2(wy, color_attrx, NULL); in _updateln()
709 (void) mvcur(wy, (second ? color_attrx : in _updateln()
710 video_attrx), wy, wx); in _updateln()
719 _setmark1(wy, wx, scp); in _updateln()
721 _setmark2(wy, wx, scp); in _updateln()
737 (void) mvcur(wy, wx + 1, wy, wx); in _updateln()
764 for (wx = 0, scp = curscr->_y[wy]; wx < scrco; ++wx, ++scp) in _updateln()
768 _BEGNS[wy] = (short)wx; in _updateln()
770 _ENDNS[wy] = -1; in _updateln()
773 scp = curscr->_y[wy] + wx; in _updateln()
778 _ENDNS[wy] = (short)wx; in _updateln()
782 _CURHASH[wy] = _BEGNS[wy] < scrco ? _NOHASH : 0; in _updateln()
1147 int wy; in _getceod() local
1154 wy = boty - 1; in _getceod()
1155 begch = _virtscr->_firstch + wy; in _getceod()
1156 endch = _virtscr->_lastch + wy; in _getceod()
1157 begns = _BEGNS + wy; in _getceod()
1159 for (; wy >= topy; --wy, --begch, --endch, --begns) { in _getceod()
1163 wcp = _virtscr->_y[wy]; in _getceod()
1174 return (wy + 1); in _getceod()