if (filllen > 0)
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat+svsp->cur_offset,
+ (caddr_t)(svsp->Crtat+svsp->cur_offset),
filllen);
}
svsp->smode.mode = VT_AUTO;
{
vs[nscr].Crtat = vs[nscr].Memory;
fillw(user_attr | ' ',
- (caddr_t)vs[nscr].Crtat,
+ (caddr_t)(vs[nscr].Crtat),
vs[nscr].maxcol * vs[nscr].screen_rowsize);
totalscreens++;
}
else if(mode == M_PUREVT) /* hp/vt-mode -> vt-pure */
{
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + svsp->screen_rows * svsp->maxcol,
+ (caddr_t)(svsp->Crtat + svsp->screen_rows * svsp->maxcol),
(svsp->screen_rowsize - svsp->screen_rows)
* svsp->maxcol);
swritefkl(0,(u_char *)"132 COLUMNS*",svsp);
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat,
+ (caddr_t)(svsp->Crtat),
svsp->maxcol * svsp->screen_rowsize);
clr_parms(svsp); /* escape parameter init */
return;
fillw (user_attr | ' ',
- (caddr_t)svsp->Crtat + svsp->screen_rows * svsp->maxcol,
+ (caddr_t)(svsp->Crtat + svsp->screen_rows * svsp->maxcol),
(svsp->screen_rowsize - svsp->screen_rows) * svsp->maxcol);
if (!svsp->labels_on)
-/* $OpenBSD: pcvt_sup.c,v 1.3 1996/05/07 12:26:32 mickey Exp $ */
+/* $OpenBSD: pcvt_sup.c,v 1.4 1996/05/07 13:07:04 mickey Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
}
if (newrows < newsize)
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + newrows * svsp->maxcol,
+ (caddr_t)(svsp->Crtat + newrows * svsp->maxcol),
(newsize - newrows) * svsp->maxcol);
} else if (oldrows < newsize)
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + oldrows * svsp->maxcol,
+ (caddr_t)(svsp->Crtat + oldrows * svsp->maxcol),
(newsize - oldrows) * svsp->maxcol);
svsp->screen_rowsize = newsize;
{
/* second call, now blank the screen */
/* fill screen with blanks */
- fillw(/* (BLACK<<8) + */ ' ', (caddr_t)vsp->Crtat, scrnsv_size / 2);
+ fillw(/* (BLACK<<8) + */ ' ', (caddr_t)(vsp->Crtat), scrnsv_size / 2);
#if PCVT_PRETTYSCRNS
scrnsv_current = vsp->Crtat;
-/* $OpenBSD: pcvt_vtf.c,v 1.3 1996/05/07 12:26:33 mickey Exp $ */
+/* $OpenBSD: pcvt_vtf.c,v 1.4 1996/05/07 13:07:06 mickey Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
switch(svsp->parms[0])
{
case 0:
- fillw(user_attr | ' ', (caddr_t)svsp->Crtat + svsp->cur_offset,
+ fillw(user_attr | ' ',
+ (caddr_t)(svsp->Crtat + svsp->cur_offset),
svsp->Crtat +
(svsp->maxcol * svsp->screen_rows) -
(svsp->Crtat + svsp->cur_offset));
break;
case 1:
- fillw(user_attr | ' ', (caddr_t)svsp->Crtat,
+ fillw(user_attr | ' ', (caddr_t)(svsp->Crtat),
svsp->Crtat + svsp->cur_offset -
svsp->Crtat + 1 );
break;
case 2:
- fillw(user_attr | ' ', (caddr_t)svsp->Crtat,
+ fillw(user_attr | ' ', (caddr_t)(svsp->Crtat),
svsp->maxcol * svsp->screen_rows);
break;
}
{
case 0:
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + svsp->cur_offset,
+ (caddr_t)(svsp->Crtat + svsp->cur_offset),
svsp->maxcol-svsp->col);
break;
case 1:
- fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + svsp->cur_offset - svsp->col,
+ fillw(user_attr | ' ',(caddr_t)
+ (svsp->Crtat + svsp->cur_offset - svsp->col),
svsp->col + 1);
break;
case 2:
- fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + svsp->cur_offset - svsp->col,
+ fillw(user_attr | ' ',(caddr_t)
+ (svsp->Crtat + svsp->cur_offset - svsp->col),
svsp->maxcol);
break;
}
void
vt_ris(struct video_state *svsp)
{
- fillw(user_attr | ' ', (caddr_t)svsp->Crtat, svsp->maxcol * svsp->screen_rows);
+ fillw(user_attr | ' ',
+ (caddr_t)(svsp->Crtat), svsp->maxcol * svsp->screen_rows);
svsp->cur_offset = 0; /* cursor upper left corner */
svsp->col = 0;
svsp->row = 0;
svsp->maxcol * (svsp->scrr_end-svsp->row+1-p) * CHR );
fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + svsp->cur_offset,
+ (caddr_t)(svsp->Crtat + svsp->cur_offset),
p * svsp->maxcol);
}
}
svsp->Crtat + svsp->cur_offset,
svsp->maxcol * (svsp->scrr_end-svsp->row+1-p) * CHR );
- fillw(user_attr | ' ',
- (caddr_t)svsp->Crtat + ((svsp->scrr_end-p+1) * svsp->maxcol),
+ fillw(user_attr | ' ',(caddr_t)
+ (svsp->Crtat + ((svsp->scrr_end-p+1) * svsp->maxcol)),
p * svsp->maxcol);
}
}
svsp->maxcol * (svsp->scrr_len - n) * CHR );
}
- fillw( user_attr | ' ',
- (caddr_t)svsp->Crtat + ((svsp->scrr_end - n + 1) * svsp->maxcol),
+ fillw( user_attr | ' ',(caddr_t)
+ (svsp->Crtat + ((svsp->scrr_end - n + 1) * svsp->maxcol)),
n * svsp->maxcol);
/*XXX*/ if(svsp->scroll_lock && svsp->openf && curproc)
svsp->maxcol * (svsp->scrr_len - n) * CHR );
}
- fillw( user_attr | ' ',
- (caddr_t)svsp->Crtat + (svsp->scrr_beg * svsp->maxcol),
+ fillw( user_attr | ' ',(caddr_t)
+ (svsp->Crtat + (svsp->scrr_beg * svsp->maxcol)),
n * svsp->maxcol);
/*XXX*/ if(svsp->scroll_lock && svsp->openf && curproc)