From: John Tsiombikas Date: Tue, 17 Jan 2017 23:15:28 +0000 (+0200) Subject: unknown changes X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=fbgfx;a=commitdiff_plain;h=55eb7990ac9033d9a0185dc9238365b5624be64e unknown changes --- 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