Commits

Remi Collet committed 8b3bb51

move variable init (reg from a1f36bc, fixed issue #63)

Comments (0)

Files changed (1)

 	int clrBackR, clrBackG, clrBackB, clrBackA;
 
 	/* See GEMS I for the algorithm details */
+	dRadAngle = dAngle * ROTATE_DEG2RAD; /* Angle in radians */
+	dSinE = sin (dRadAngle);
+	dTan = tan (dRadAngle / 2.0);
 
 	newx = (int)(src->sx + src->sy * fabs(dTan));
 	newy = src->sy;
 		}
 	}
 
-	dRadAngle = dAngle * ROTATE_DEG2RAD; /* Angle in radians */
-	dSinE = sin (dRadAngle);
-	dTan = tan (dRadAngle / 2.0);
-
 	for (u = 0; u < dst1->sy; u++) {
 		if (dTan >= 0.0) {
 			dShear = ((double)(u + 0.5)) * dTan;