From 55eb7990ac9033d9a0185dc9238365b5624be64e Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 18 Jan 2017 01:15:28 +0200 Subject: [PATCH] unknown changes --- src/main.c | 2 +- src/tunnel.c | 44 +++++++++++++++++++++++++++----------------- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/src/main.c b/src/main.c index f18563e..4d63726 100644 --- a/src/main.c +++ b/src/main.c @@ -19,7 +19,7 @@ static int quit; int main(void) { - int i, trybpp[] = {32, 24, 16, 0}; + int i, trybpp[] = {16, 32, 24, 16, 0}; fbgfx_save_video_mode(); fbgfx_get_video_mode(&fb_width, &fb_height, &fb_depth); 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