+ x = vox->x - xstep * (vox->fbwidth >> 1);
+ y = vox->y + (vox->znear << 16);
+ for(i=0; i<vox->fbwidth; i++) {
+ tx = (x >> 16) & vox->xmask;
+ ty = (y >> 16) & vox->ymask;
+
+ hval = (vox->height[(ty << vox->xshift) + tx] - vox->vheight) * vox->proj_dist / y;
+ if(hval > vox->coltop[i]) {
+ color = vox->color[(ty << vox->xshift) + tx];
+ colstart = vox->fbheight - 1 - hval;
+ colheight = hval - vox->coltop[i];
+ fbptr = vox->fb + colstart * vox->fbwidth + i;
+
+ for(j=0; j<colheight; j++) {
+ *fbptr = color;
+ fbptr += vox->fbwidth;
+ }
+ }
+
+ x += xstep;
+ }