* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* Edward Wang at The University of California, Berkeley.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)wwredrawwin.c 8.1 (Berkeley) %G%";
wwredrawwin1(w
, row1
, row2
, offset
)
register union ww_char
*buf
;
register union ww_char
*ns
;
for (row
= row1
; row
< row2
; row
++) {
smap
= &wwsmap
[row
][col
];
buf
= w
->ww_buf
[row
+ offset
];
for (; col
< w
->ww_i
.r
; col
++)
if (*smap
++ == w
->ww_index
&&
(x
= buf
[col
].c_w
^ win
[col
] << WWC_MSHIFT
)) {
wwtouched
[row
] |= WWU_TOUCHED
;