* Copyright (c) 1981 Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)touchwin.c 5.11 (Berkeley) %G%";
touchline(win
, y
, sx
, ex
)
return (__touchline(win
, y
, sx
, ex
, 1));
* Make it look like the whole window has been changed.
__TRACE("touchwin: (%0.2o)\n", win
);
for (y
= 0; y
< maxy
; y
++)
__touchline(win
, y
, 0, win
->maxx
- 1, 1);
__TRACE("touchwin: (%0.2o)\n", win
);
for (y
= 0; y
< maxy
; y
++)
__touchline(win
, y
, 0, win
->maxx
- 1, 0);
__touchline(win
, y
, sx
, ex
, force
)
__TRACE("touchline: (%0.2o, %d, %d, %d, %d)\n", win
, y
, sx
, ex
, force
);
__TRACE("touchline: first = %d, last = %d\n",
*win
->lines
[y
]->firstchp
, *win
->lines
[y
]->lastchp
);
win
->lines
[y
]->flags
|= __FORCEPAINT
;
if (!(win
->lines
[y
]->flags
& __ISDIRTY
)) {
win
->lines
[y
]->flags
|= __ISDIRTY
;
*win
->lines
[y
]->firstchp
= sx
;
*win
->lines
[y
]->lastchp
= ex
;
if (*win
->lines
[y
]->firstchp
> sx
)
*win
->lines
[y
]->firstchp
= sx
;
if (*win
->lines
[y
]->lastchp
< ex
)
*win
->lines
[y
]->lastchp
= ex
;
__TRACE("touchline: first = %d, last = %d\n",
*win
->lines
[y
]->firstchp
, *win
->lines
[y
]->lastchp
);