diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-07 12:26:34 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-07 12:26:34 +0000 |
commit | 30a601365b8598c630eff0fe10bf2503e121b09b (patch) | |
tree | d7b3864f6e31ca90ffc2c6f18c713b4b2bb05bbf /sys/arch/i386/isa/pcvt/pcvt_vtf.c | |
parent | eca2c01fbb650f74d8b1335ce611c1eae7bd704b (diff) |
fillw is in machine/cpu.h now.
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_vtf.c')
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_vtf.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_vtf.c b/sys/arch/i386/isa/pcvt/pcvt_vtf.c index 6e2056de9d8..0c3e1bb587d 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_vtf.c +++ b/sys/arch/i386/isa/pcvt/pcvt_vtf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_vtf.c,v 1.2 1996/04/18 17:48:37 niklas Exp $ */ +/* $OpenBSD: pcvt_vtf.c,v 1.3 1996/05/07 12:26:33 mickey Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -322,20 +322,20 @@ vt_clreos(struct video_state *svsp) switch(svsp->parms[0]) { case 0: - fillw(user_attr | ' ', 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 | ' ', svsp->Crtat, + fillw(user_attr | ' ', (caddr_t)svsp->Crtat, svsp->Crtat + svsp->cur_offset - svsp->Crtat + 1 ); break; case 2: - fillw(user_attr | ' ', svsp->Crtat, + fillw(user_attr | ' ', (caddr_t)svsp->Crtat, svsp->maxcol * svsp->screen_rows); break; } @@ -351,19 +351,19 @@ vt_clreol(struct video_state *svsp) { case 0: fillw(user_attr | ' ', - svsp->Crtat + svsp->cur_offset, + (caddr_t)svsp->Crtat + svsp->cur_offset, svsp->maxcol-svsp->col); break; case 1: fillw(user_attr | ' ', - svsp->Crtat + svsp->cur_offset - svsp->col, + (caddr_t)svsp->Crtat + svsp->cur_offset - svsp->col, svsp->col + 1); break; case 2: fillw(user_attr | ' ', - svsp->Crtat + svsp->cur_offset - svsp->col, + (caddr_t)svsp->Crtat + svsp->cur_offset - svsp->col, svsp->maxcol); break; } @@ -440,7 +440,7 @@ vt_curadr(struct video_state *svsp) void vt_ris(struct video_state *svsp) { - fillw(user_attr | ' ', 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; @@ -1297,7 +1297,7 @@ vt_il(struct video_state *svsp) svsp->maxcol * (svsp->scrr_end-svsp->row+1-p) * CHR ); fillw(user_attr | ' ', - svsp->Crtat + svsp->cur_offset, + (caddr_t)svsp->Crtat + svsp->cur_offset, p * svsp->maxcol); } } @@ -1354,7 +1354,7 @@ vt_dl(struct video_state *svsp) svsp->maxcol * (svsp->scrr_end-svsp->row+1-p) * CHR ); fillw(user_attr | ' ', - svsp->Crtat + ((svsp->scrr_end-p+1) * svsp->maxcol), + (caddr_t)svsp->Crtat + ((svsp->scrr_end-p+1) * svsp->maxcol), p * svsp->maxcol); } } @@ -1429,7 +1429,7 @@ vt_ech(struct video_state *svsp) else if(p > svsp->maxcol-svsp->col) p = svsp->maxcol-svsp->col; - fillw(user_attr | ' ', (svsp->Crtat + svsp->cur_offset), p); + fillw(user_attr | ' ', (caddr_t)(svsp->Crtat + svsp->cur_offset), p); } /*---------------------------------------------------------------------------* @@ -2021,7 +2021,7 @@ roll_up(struct video_state *svsp, int n) } fillw( user_attr | ' ', - svsp->Crtat + ((svsp->scrr_end - n + 1) * svsp->maxcol), + (caddr_t)svsp->Crtat + ((svsp->scrr_end - n + 1) * svsp->maxcol), n * svsp->maxcol); /*XXX*/ if(svsp->scroll_lock && svsp->openf && curproc) @@ -2075,7 +2075,7 @@ roll_down(struct video_state *svsp, int n) } fillw( user_attr | ' ', - svsp->Crtat + (svsp->scrr_beg * svsp->maxcol), + (caddr_t)svsp->Crtat + (svsp->scrr_beg * svsp->maxcol), n * svsp->maxcol); /*XXX*/ if(svsp->scroll_lock && svsp->openf && curproc) |