X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ftunnel.c;h=13eea708f5afc2a8b752b2628ce971d26047a1d8;hb=af1caae949c63a870f02b69cdbe0604c3b5ed0e9;hp=ee6758e083e45ebb63dec771881306774e6395d5;hpb=2c2834ca26bf4d2b9f6a588c9aa53a8b36510bd6;p=dosdemo diff --git a/src/tunnel.c b/src/tunnel.c index ee6758e..13eea70 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -1,8 +1,9 @@ #include #include +#include #include #include -/*#include */ +#include "imago2.h" #include "demo.h" #include "screen.h" @@ -102,16 +103,16 @@ static int init(void) } } - /*if(!(tex_pixels = img_load_pixels(TEX_FNAME, &tex_xsz, &tex_ysz, IMG_FMT_RGBA32))) { + if(!(tex_pixels = img_load_pixels(TEX_FNAME, &tex_xsz, &tex_ysz, IMG_FMT_RGBA32))) { fprintf(stderr, "failed to load image " TEX_FNAME "\n"); return -1; } if((count_bits(tex_xsz) | count_bits(tex_ysz)) != 1) { fprintf(stderr, "non-pow2 image (%dx%d)\n", tex_xsz, tex_ysz); return -1; - }*/ + } - tex_pixels = gen_test_image(&tex_xsz, &tex_ysz); + /*tex_pixels = gen_test_image(&tex_xsz, &tex_ysz);*/ n = count_zeros(tex_xsz); for(i=0; i