Lines Matching refs:wy

88 	int	wx, wy, nc, boty, clby, idby, *hs, curwin;  in wrefresh()  local
175 wy = scrli - 1; in wrefresh()
178 for (; wy >= 0; --wy) { in wrefresh()
184 marks[wy][wx] = 0; in wrefresh()
208 wy = _VIRTTOP; in wrefresh()
210 bnsch = _virtscr->_firstch + wy; in wrefresh()
211 ensch = _virtscr->_lastch + wy; in wrefresh()
213 for (; wy < boty; ++wy, ++bnsch, ++ensch) { in wrefresh()
221 _VIRTTOP = (short) wy; in wrefresh()
227 clby = _getceod(wy, boty); in wrefresh()
235 if (wy == clby) in wrefresh()
236 _useceod(wy, boty); in wrefresh()
239 if (wy == idby) { in wrefresh()
248 _updateln(wy); in wrefresh()
261 wy = _virtscr->_cury; in wrefresh()
263 if (wy != cy || wx != cx) { in wrefresh()
264 (void) mvcur(cy, cx, wy, wx); in wrefresh()
266 cy = (short) wy; in wrefresh()
291 _shove(int wy) in _shove() argument
309 return (_virtscr->_y[wy]); in _shove()
313 wcp = _virtscr->_y[wy]; in _shove()
329 if ((curx >= x) && (cury == wy)) in _shove()
343 ((wy == scrli - 1) && (_ATTR(*(cp - 1)) != A_NORMAL))) { in _shove()
345 if (wy == scrli - 1) in _shove()
349 if (wy == cury) in _shove()
370 _updateln(int wy) in _updateln() argument
377 redraw = (_virtscr->_firstch[wy] == _REDRAW); in _updateln()
378 endns = _ENDNS[wy]; in _updateln()
379 begns = _BEGNS[wy]; in _updateln()
382 if (!redraw && (_virtscr->_lastch[wy] == _BLANK) && (begns >= scrco)) in _updateln()
386 wcp = magic_cookie_glitch <= 0 ? _virtscr->_y[wy] : _shove(wy); in _updateln()
387 scp = curscr->_y[wy]; in _updateln()
394 wx = _virtscr->_firstch[wy]; in _updateln()
395 lastx = _virtscr->_lastch[wy] == _BLANK ? scrco : in _updateln()
396 _virtscr->_lastch[wy] + 1; in _updateln()
434 if (_virtscr->_lastch[wy] == _BLANK) in _updateln()
479 if (magic_cookie_glitch > 0 && wy == scrli - 1 && in _updateln()
483 wy == scrli - 1 && color_attrx == scrco - 1) in _updateln()
503 if (_ATTR(*wp) || _ISMARK1(wy, idcx) || in _updateln()
504 _ISMARK2(wy, idcx)) in _updateln()
558 (void) mvcur(cy, cx, wy, x); in _updateln()
568 cy = (short) wy; in _updateln()
585 if (cy != wy || cx != wx) in _updateln()
586 (void) mvcur(cy, cx, wy, wx); in _updateln()
588 cy = (short) wy; in _updateln()
614 curscr->_cury = (short) wy; in _updateln()
621 _setmark1(wy, wx, NULL); in _updateln()
623 _setmark2(wy, wx, NULL); in _updateln()
666 if ((video_change && !_ISMARK1(wy, in _updateln()
668 !_ISMARK2(wy, color_attrx))) { in _updateln()
675 !_ISMARK1(wy, video_attrx)) { in _updateln()
677 (void) mvcur(wy, wx, in _updateln()
678 wy, video_attrx); in _updateln()
679 _VIDS(_VIDEO(_virtscr->_y[wy] in _updateln()
681 _VIDEO(_virtscr->_y[wy] in _updateln()
683 _setmark1(wy, video_attrx, in _updateln()
689 !_ISMARK2(wy, color_attrx)) { in _updateln()
693 (void) mvcur(wy, tempx, wy, in _updateln()
699 _VIDS(_COLOR(_virtscr->_y[wy] in _updateln()
701 _COLOR(_virtscr->_y[wy] in _updateln()
703 _setmark2(wy, color_attrx, NULL); in _updateln()
706 (void) mvcur(wy, (second ? color_attrx : in _updateln()
707 video_attrx), wy, wx); in _updateln()
716 _setmark1(wy, wx, scp); in _updateln()
718 _setmark2(wy, wx, scp); in _updateln()
734 (void) mvcur(wy, wx + 1, wy, wx); in _updateln()
761 for (wx = 0, scp = curscr->_y[wy]; wx < scrco; ++wx, ++scp) in _updateln()
765 _BEGNS[wy] = (short) wx; in _updateln()
767 _ENDNS[wy] = -1; in _updateln()
770 scp = curscr->_y[wy] + wx; in _updateln()
775 _ENDNS[wy] = (short) wx; in _updateln()
779 _CURHASH[wy] = _BEGNS[wy] < scrco ? _NOHASH : 0; in _updateln()
1144 int wy; in _getceod() local
1151 wy = boty - 1; in _getceod()
1152 begch = _virtscr->_firstch + wy; in _getceod()
1153 endch = _virtscr->_lastch + wy; in _getceod()
1154 begns = _BEGNS + wy; in _getceod()
1156 for (; wy >= topy; --wy, --begch, --endch, --begns) { in _getceod()
1160 wcp = _virtscr->_y[wy]; in _getceod()
1171 return (wy + 1); in _getceod()