summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--attract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attract.c b/attract.c
index 838ad76..87ca6a1 100644
--- a/attract.c
+++ b/attract.c
@@ -80,7 +80,7 @@ static void* thread_entry(void *arg_vp){
for(int ix=0;ix<cfg.width;ix++){
const double complex start=CMPLX(
(double)(ix-cfg.width/2)/cfg.unitsz+cfg.midx,
- (double)(iy-cfg.height/2)/cfg.unitsz+cfg.midy);
+ cfg.midy-(double)(iy-cfg.height/2)/cfg.unitsz);
double complex z=start;
for(int i=0;i<MAXITER;i++){
z=att_func(z,cfg.exponent);