X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ftunnel.c;h=d10c691379f7debc88698e0737fee7e1899e5be9;hb=dce48eb322ddf2a3c3622fc132ece21ba7653da3;hp=55eaefadaa56a83ca3948909a46c42380aee0540;hpb=62b7a04b073e5a605cf2a455908b5f8607b6f2ae;p=dosdemo diff --git a/src/tunnel.c b/src/tunnel.c index 55eaefa..d10c691 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -1,10 +1,12 @@ #include #include +#include #include #include #include "imago2.h" #include "demo.h" #include "screen.h" +#include "gfxutil.h" #ifndef M_PI #define M_PI 3.1415926535 @@ -26,8 +28,6 @@ static void draw_tunnel_range(unsigned short *pixels, int xoffs, int yoffs, int static int count_bits(unsigned int x); static int count_zeros(unsigned int x); -static unsigned int *gen_test_image(int *wptr, int *hptr); - static struct screen scr = { "tunnel", init, @@ -181,8 +181,15 @@ static void draw(void) for(i=0; i> 8; } -#define PACK_RGB16(r, g, b) \ - (((((r) >> 3) & 0x1f) << 11) | ((((g) >> 2) & 0x3f) << 5) | (((b) >> 3) & 0x1f)) -#define PACK_RGB32(r, g, b) \ - ((((r) & 0xff) << 16) | (((g) & 0xff) << 8) | ((b) & 0xff)) - static void draw_tunnel_range(unsigned short *pix, int xoffs, int yoffs, int starty, int num_lines, long tm) { int i, j; @@ -258,6 +260,7 @@ static int count_zeros(unsigned int x) return num; } +/* static unsigned int *gen_test_image(int *wptr, int *hptr) { int i, j; @@ -281,3 +284,4 @@ static unsigned int *gen_test_image(int *wptr, int *hptr) *hptr = ysz; return pixels; } +*/