[comp.os.msdos.programmer] Alternatives to putpixel

b39y@vax5.cit.cornell.edu (05/10/91)

I'm new to C in general, and Borland C++ in particular, and I'm wondering what
my alternatives are to using putpixel(x,y,c) to draw to the graphics screen. 
The code I've written is really slow in the display section, and I'm sure there
must be a faster way.  The code has all extraneous calculations removed:  here
follows an extract:

int i,j;
static unsigned char old[ 100 ][ 100 ];
static unsigned char new2[ 100 ][ 100 ];

int col;

.
.
.

for( j=0; j<100; j++ )
	for( i=0; i<100; i++ )
	{
		col = old[ j ][ i ];
		putpixel( i,j, col );
		new[ j ][ i ] = col;
	}

Any suggestions for what to do, or pointers for where to look for speedups? 
Thanks.

Dave
b39y@vax5.cit.cornell.edu