home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MAGAZINE
/
PROGJOUR
/
PJ_9_4.ZIP
/
V_SAVE_S.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-03
|
543b
|
24 lines
/* v_save_s.c- Workhorse Function: Save Screen Region */
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <tools/viewport.h>
void _v_save_scr( iptr image, int row, int col, int nrows, int ncols )
{
/* Copy the indicated region of the screen into image. */
int i;
int buf[ VMAXCOLS ], *bp;
while( --nrows >= 0 )
{
gettext( col+1, row+1, col+ncols, row+1, buf );
++row;
bp = buf;
for( i = ncols ; --i >= 0 ; )
*image++ = *bp++;
}
}