--- fract/mandelzoom.cgi 2001/02/26 03:13:13 1.6 +++ fract/mandelzoom.cgi 2001/02/26 05:31:47 1.7 @@ -74,10 +74,10 @@ iy= atof(form['image.y'].value) owidth= atof(form['owidth'].value) oheight= atof(form['oheight'].value) - diagp= math.sqrt(width**2 + height**2) + diagp= math.sqrt(owidth**2 + oheight**2) scale= diagp/diag - cx= (ix/scale) + (cx - (width / (scale*2))) - cy= ((height-iy)/scale) + (cy - (height / (scale*2))) + cx= (ix/scale) + (cx - (owidth / (scale*2))) + cy= ((oheight-iy)/scale) + (cy - (oheight / (scale*2))) if form.has_key('zoom'): zoom=atof(form['zoom'].value) diag=diag/zoom