nap time commit

This commit is contained in:
tTh
2023-02-13 17:56:08 +01:00
parent 36d30b76d7
commit a4b7f5c21c
8 changed files with 37 additions and 28 deletions

View File

@@ -41,19 +41,19 @@ singlepass: singlepass.c ${DEPS} ${OBJS} Makefile
# some files are magically generated, sorry.
#
crapdef.h: crapulors.liste Makefile craplist2h.awk
./craplist2h.awk < $< | tee $@
< $< ./craplist2h.awk > $@
crapstr.h: crapulors.liste Makefile craplist2str.awk
./craplist2str.awk < $< | tee $@
< $< ./craplist2str.awk > $@
# ---------------------------------------------------------
#
# a lot of silly functions
#
crapulator.o: crapulator.c ${DEPS} Makefile
crapulator.o: crapulator.c $(DEPS) Makefile
gcc ${COPT} -c $<
fifo.o: fifo.c fifo.h Makefile
fifo.o: fifo.c fifo.h $(DEPS) Makefile
gcc ${COPT} -c $<
sfx.o: sfx.c ${DEPS} Makefile

View File

@@ -24,5 +24,5 @@ BEGIN {
END {
print " { -1, NULL }"
print " };"
print "// generated file, do not edit by hand !"
print "// ! generated file, do not edit by hand !"
}

View File

@@ -151,13 +151,11 @@ int pass, szimg, osrc, odst;
szimg = picture->width * picture->height;
for (pass=0; pass<szimg/32; pass++) {
osrc = rand() % szimg;
odst = rand() % szimg;
picture->R[odst] = (picture->R[osrc] + picture->R[odst]) / 2.0;
picture->G[odst] = (picture->G[osrc] + picture->G[odst]) / 2.0;
picture->B[odst] = (picture->B[osrc] + picture->B[odst]) / 2.0;
}
return 0;
@@ -180,7 +178,6 @@ for (y=0; y<picture->height; y+=16) {
un_petit_flou_8x8(picture, x, y+8);
un_petit_flou_8x8(picture, x+8, y+8);
}
}
}