+ long toffs = time_msec / 4;
+ unsigned short *pixels = (unsigned short*)pix + starty * xsz * VSCALE;
+
+ for(i=0; i<num_lines; i++) {
+ for(j=0; j<vxsz; j++) {
+ unsigned int col;
+ int r, g, b;
+
+ tunnel_color(&r, &g, &b, toffs, *tmap++, *fog++);
+ col = PACK_RGB16(r, g, b);
+
+ PUTPIXEL(unsigned short, col);
+ pixels += USCALE;
+ }
+ pixels += xsz * (VSCALE - 1);
+ }
+}
+
+static void draw_tunnel_range32(void *pix, int starty, int num_lines)