X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=fbgfx;a=blobdiff_plain;f=src%2Ftunnel.c;h=221fadcc0624085b7e01f67d292153c202955ca0;hp=c331f2de93096bc3249b770a747de81cb4e7e70d;hb=55eb7990ac9033d9a0185dc9238365b5624be64e;hpb=3501fee68804c49c9f9f6effc1061eed3164e660 diff --git a/src/tunnel.c b/src/tunnel.c index c331f2d..221fadc 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -13,6 +13,15 @@ #define TEX_USCALE 4 #define TEX_VSCALE 2 +#define NUM_WORK_ITEMS 8 + +static struct work { + void *pixels; + int starty, num_lines; + long tm; + int xoffs, yoffs; +} work[NUM_WORK_ITEMS]; + static int init(void); static void destroy(void); static void start(long trans_time); @@ -140,6 +149,13 @@ static int init(void) return -1; } + /* initialize the constant part of all work items */ + for(i=0; i