aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-06-07 12:26:47 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-06-07 12:26:47 +1200
commit49c77019c2944f3bcf907e856fd1854d4a1da58a (patch)
treed219adb6490c229c33357da8f353005d04354b98
parentd27188d0aecb1bf79fda332abce124a22f722b0b (diff)
downloadfractal-gen-49c77019c2944f3bcf907e856fd1854d4a1da58a.tar.xz
Changed to output PGMs
-rw-r--r--fractal-gen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index bb10dfe..2e06df3 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -75,6 +75,9 @@ int main(int argc, char **argv)
for (i = 0; i < cores; i++)
pthread_join(sections[i].thread, NULL);
+ // Output PGM Header
+ printf("P5\n%d\n%d\n255\n",size,size);
+
// Vomit the data segments back onto the screen, deinterlacing
// TO DO: look at fwrite performance benefits over putchar
for (y = 0; y < size; y++)