Lines Matching refs:__virtscr
210 /* Check that cursor position on "win" is valid for "__virtscr" */
214 && 0 <= newy && newy < screen->__virtscr->maxy)
215 screen->__virtscr->cury = newy;
217 && 0 <= newx && newx < screen->__virtscr->maxx)
218 screen->__virtscr->curx = newx;
220 /* Copy the window flags from "win" to "__virtscr" */
223 screen->__virtscr->flags |= __CLEAROK;
226 screen->__virtscr->flags &= ~__LEAVEOK;
227 screen->__virtscr->flags |= dwin->flags;
235 y_off < screen->__virtscr->maxy; wy++, y_off++, dy_off++)
267 vlp = screen->__virtscr->alines[y_off];
293 if (x_off + (mx - wx) > screen->__virtscr->maxx)
295 screen->__virtscr->maxx;
298 /* Copy line from "win" to "__virtscr". */
387 /* Set flags on "__virtscr" and unset on "win". */
407 /* Set change pointers on "__virtscr". */
437 "__virtscr: firstch = %d, lastch = %d\n",
545 * Make the current screen look like the virtual window "__virtscr".
562 win = _cursesi_screen->__virtscr;
626 "stdscr(%p)-curscr(%p)-__virtscr(%p)\n",
627 stdscr, curscr, _cursesi_screen->__virtscr);
697 vlp = _cursesi_screen->__virtscr->alines[win->begy + wy];
755 *vlp->firstchp = _cursesi_screen->__virtscr->maxx;
756 if (*vlp->lastchp <= _cursesi_screen->__virtscr->maxx)
793 "stdscr(%p)-curscr(%p)-__virtscr(%p)\n",
794 stdscr, curscr, _cursesi_screen->__virtscr);
805 _cursesi_screen->__virtscr->alines[i]->line[j].ch,
806 _cursesi_screen->__virtscr->alines[i]->line[j].attr,
807 _cursesi_screen->__virtscr->alines[i]->line[j].wcols,
808 _cursesi_screen->__virtscr->alines[i]->line[j].cflags,
809 _cursesi_screen->__virtscr->alines[i]->line[j].nsp);
1162 win = __virtscr;
1184 "[makech-before]wy=%d,curscr(%p)-__virtscr(%p)\n",
1185 wy, curscr, __virtscr);
1188 vlp = &__virtscr->alines[wy]->line[x];
1248 "makech: nsp is at __virtscr:(%d,%d)\n", wy, wx);
1492 "makech-after: curscr(%p)-__virtscr(%p)\n",
1493 curscr, __virtscr );
1496 vlp = &__virtscr->alines[wy]->line[x];
1553 #define THRESH (int) __virtscr->maxy / 4
1567 for (top = 0; top < __virtscr->maxy; top++) {
1568 if (__virtscr->alines[top]->flags & __ISDIRTY &&
1569 (__virtscr->alines[top]->hash != curscr->alines[top]->hash ||
1570 !lineeq(__virtscr->alines[top]->line,
1572 (size_t) __virtscr->maxx))) {
1575 __virtscr->alines[top]->flags &= ~__ISDIRTY;
1580 for (bot = __virtscr->maxy - 1; bot >= 0; bot--) {
1581 if (__virtscr->alines[bot]->flags & __ISDIRTY &&
1582 (__virtscr->alines[bot]->hash != curscr->alines[bot]->hash ||
1583 !lineeq(__virtscr->alines[bot]->line,
1585 (size_t) __virtscr->maxx))) {
1588 __virtscr->alines[bot]->flags &= ~__ISDIRTY;
1597 bcolor = __virtscr->alines[min(top,
1598 __virtscr->maxy - 1)]->line[0].attr & __COLOR;
1600 if ((__virtscr->alines[i]->line[0].attr & __COLOR) != bcolor) {
1601 bcolor = __virtscr->alines[i]->line[__virtscr->maxx].
1616 if (bot < __virtscr->maxy - 1)
1624 * __virtscr.
1628 * __virtscr.
1640 if (__virtscr->alines[curw]->hash !=
1647 if (!lineeq(__virtscr->alines[curw]->line,
1649 (size_t) __virtscr->maxx)) {
1696 __virtscr->alines[i]->hash);
1698 __virtscr->alines[i]->flags);
1699 for (j = 0; j < __virtscr->maxx; j++)
1701 __virtscr->alines[i]->line[j].ch);
1704 for (j = 0; j < __virtscr->maxx; j++)
1706 __virtscr->alines[i]->line[j].attr);
1732 if (__virtscr->maxx != last_hash_len) {
1734 for (i = __virtscr->maxx; i > BLANKSIZE; i -= BLANKSIZE) {
1740 last_hash_len = __virtscr->maxx;
1794 __virtscr->alines[target]->flags &= ~__ISDIRTY;
1801 (__virtscr->maxx - 1)) ||
1804 for (i = __virtscr->maxx;
1815 __touchline(__virtscr, target, 0, (int) __virtscr->maxx - 1);
1819 __touchline(__virtscr, target, 0, (int) __virtscr->maxx - 1);
1823 __touchline(__virtscr, target, 0,
1824 (int)__virtscr->maxx - 1);
1844 for (j = 0; j < __virtscr->maxx; j++)
1846 __virtscr->alines[i]->line[j].ch);
1894 top > 3 || bot + 3 < __virtscr->maxy) &&
1909 0, (int)__virtscr->maxy - 1), 0, __cputchar);
1964 bot + 3 < __virtscr->maxy) && scroll_reverse != NULL)))
1979 0, (int) __virtscr->maxy - 1), 0, __cputchar);
1988 if (parm_rindex != NULL && bot == __virtscr->maxy)
2001 bot == __virtscr->maxy)