extern int handle; /* VDI handle */ static int pxy[4]; static int step; static int x,y; pixinit(pow) int pow; { step = 1 << pow; x=0; y=0; } curput(col) int col; { pxy[0] = x; pxy[1] = y; pxy[2] = x+step-1; pxy[3] = y+step-1; vsf_color(handle,col); v_bar(handle,pxy); } pixput(col) int col; { pxy[0] = x; pxy[1] = y; pxy[2] = x+step-1; pxy[3] = y+step-1; vsf_color(handle,col); v_bar(handle,pxy); pixskip(); } pixskip() { x += step; if (x >= 320) { x = 0; y += step; } }