Return to fb8.h CVS log | Up to [jp.NetBSD.org] / othersrc / mgl / mgl2 / lib |
File: [jp.NetBSD.org] / othersrc / mgl / mgl2 / lib / fb8.h (download)
Revision 1.1, Sat Sep 9 03:31:44 2000 UTC (23 years, 7 months ago) by suz
alpha 018 |
static unsigned char *fb8_base; static int fb8_rowbytes; static void fb8_setup(char *base,int rowbytes,int rgbord) { fb8_base = base; fb8_rowbytes = rowbytes; } static void fb8_put_pixstream(int x,int y,int *buf,int xs,int dir, int op) { unsigned char *pcolor; int i; pcolor = fb8_base + fb8_rowbytes * y + x; for (i=0; i< xs; i++,pcolor++,buf++) { *pcolor = CONV_TO_COL192(*buf & 0x0fff); } }