mirror of
https://github.com/brmlab/ledbar.git
synced 2025-06-10 05:44:01 +02:00
fix build
This commit is contained in:
parent
6578c091a9
commit
4b37602c43
2 changed files with 11 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
||||||
CFLAGS=$(shell sdl-config --cflags) -Wall
|
CFLAGS=$(shell sdl-config --cflags) -Wall
|
||||||
LDFLAGS=$(shell sdl-config --libs)
|
LDFLAGS=$(shell sdl-config --libs) -lm
|
||||||
|
|
||||||
all: ledbar
|
all: ledbar
|
||||||
|
|
||||||
|
|
|
@ -260,8 +260,6 @@ void programS(int i, int t, double *r, double *g, double *b)
|
||||||
*g = (sin(((double)(t-200)/400)*(2*M_PI))+1)/2;
|
*g = (sin(((double)(t-200)/400)*(2*M_PI))+1)/2;
|
||||||
*b = 0;
|
*b = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// crossfade gb
|
// crossfade gb
|
||||||
|
@ -276,8 +274,6 @@ void programD(int i, int t, double *r, double *g, double *b)
|
||||||
*g = (sin(((double)(t-200)/400)*(2*M_PI))+1)/2;
|
*g = (sin(((double)(t-200)/400)*(2*M_PI))+1)/2;
|
||||||
*b = (sin(((double)t/400)*(2*M_PI))+1)/2;
|
*b = (sin(((double)t/400)*(2*M_PI))+1)/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// crossfade rb
|
// crossfade rb
|
||||||
|
@ -292,8 +288,6 @@ void programF(int i, int t, double *r, double *g, double *b)
|
||||||
*g = 0;
|
*g = 0;
|
||||||
*b = (sin(((double)t/400)*(2*M_PI))+1)/2;
|
*b = (sin(((double)t/400)*(2*M_PI))+1)/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawScreen(SDL_Surface* screen, int t, FILE* fp)
|
void drawScreen(SDL_Surface* screen, int t, FILE* fp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue