/* f* bus_vcxk/vcxk_draw_mono FUNCTION copies a monochrom bitmap (BMP-Format) from given memory PARAMETER dataptr pointer to bitmap x output bitmap @ columne y output bitmap @ row  */
void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth, unsigned long cp_width, unsigned long cp_height)
/* f* bus_vcxk/vcxk_draw_mono FUNCTION copies a monochrom bitmap (BMP-Format) from given memory PARAMETER dataptr pointer to bitmap x output bitmap @ columne y output bitmap @ row  */
void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth, unsigned long cp_width, unsigned long cp_height)
{
	unsigned char *lineptr;
	unsigned long xcnt, ycnt;
	for (ycnt = cp_height; ycnt > 0; ycnt--) {
		lineptr	= dataptr;
		for (xcnt = 0; xcnt < cp_width; xcnt++) {
			if ((*lineptr << (xcnt % 8)) & 0x80)
				vcxk_setpixel(xcnt, ycnt - 1, 0xFFFFFF);
			else
				vcxk_setpixel(xcnt, ycnt-1, 0);
			if ((xcnt % 8) == 7)
				lineptr++;
		}
		dataptr = dataptr + linewidth;
	}
}