From ea6ebd7d2c4ea0d6cdd10a17603f25901755782c Mon Sep 17 00:00:00 2001 From: Jakub Date: Tue, 20 Sep 2011 19:43:03 +0200 Subject: [PATCH] Changed the number of pixels to 10 --- host/ledbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/ledbar.c b/host/ledbar.c index 898a128..26e96fc 100644 --- a/host/ledbar.c +++ b/host/ledbar.c @@ -33,7 +33,7 @@ #define RESX 800 #define RESY 600 #define BPP 32 -#define BOXES 23 +#define BOXES 10 SDL_Rect rects[BOXES]; @@ -156,7 +156,7 @@ void programI(int i, int t, double *r, double *g, double *b) void programO(int i, int t, double *r, double *g, double *b) { #define PERIOD 1200 -#define MAX_DIST 9 +#define MAX_DIST 4 t += PERIOD; unsigned int rnd, seed; int t1;