From ba6b0df2033095931c4b74744fdb3894b85ed05d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 5 Apr 2017 16:37:52 +0200 Subject: config printf's after argument parsing --- attract.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/attract.c b/attract.c index 0ee39b6..838ad76 100644 --- a/attract.c +++ b/attract.c @@ -127,14 +127,6 @@ int main(int argc,char **argv){ .exponent=8.5 }; - printf("Config:\n"); - printf("unitsz = %lf\n",cfg.unitsz); - printf("width = %d\n",cfg.width); - printf("height = %d\n",cfg.height); - printf("midx = %lf\n",cfg.midx); - printf("midy = %lf\n",cfg.midy); - printf("exponent = %lf\n",cfg.exponent); - if(argc>=2){ cfg.exponent=strtod(argv[1],NULL); } @@ -145,6 +137,14 @@ int main(int argc,char **argv){ fname="out.png"; } + printf("Config:\n"); + printf("unitsz = %lf\n",cfg.unitsz); + printf("width = %d\n",cfg.width); + printf("height = %d\n",cfg.height); + printf("midx = %lf\n",cfg.midx); + printf("midy = %lf\n",cfg.midy); + printf("exponent = %lf\n",cfg.exponent); + unsigned char img[cfg.width*cfg.height*3]; int nthreads=sysconf(_SC_NPROCESSORS_ONLN); -- cgit v1.2.3-70-g09d2