From 8cb12aae2c6b8f3b69252af6c373674ce6f0118c Mon Sep 17 00:00:00 2001 From: Jakub Date: Tue, 20 Sep 2011 19:34:00 +0200 Subject: [PATCH] Added option to write the output to file --- host/ledbar.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/host/ledbar.c b/host/ledbar.c index 782d538..898a128 100644 --- a/host/ledbar.c +++ b/host/ledbar.c @@ -234,15 +234,24 @@ void programP(int i, int t, double *r, double *g, double *b) } -void drawScreen(SDL_Surface* screen, int t) +void drawScreen(SDL_Surface* screen, int t, FILE* fp) { int i; double r, g, b; + unsigned char c; if(SDL_MUSTLOCK(screen) && SDL_LockSurface(screen) < 0) return; for (i=0; i