00001 /*@A (C) 1992 Allen I. Holub */ 00002 #include "video.h" 00003 00004 void dv_clr_region(int l,int r,int t,int b,int attrib ) 00005 { 00006 int ysize, xsize, x, y ; 00007 00008 xsize = (r - l) + 1; /* horizontal size of region */ 00009 ysize = (b - t) + 1; /* vertical size of region */ 00010 00011 for( y = ysize; --y >= 0 ;) 00012 for( x = xsize; --x >= 0 ; ) 00013 { 00014 SCREEN[ y + t ][ x + l ].letter = ' '; 00015 SCREEN[ y + t ][ x + l ].attribute = attrib ; 00016 } 00017 }