Fixed last fix

This commit is contained in:
Nikola
2026-07-13 23:13:08 +02:00
parent c68d8c7c15
commit 085bb04595
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ void tricorn_V2(float complex start, size_t width, ssize_t height, float res, un
// As we iterate from the top always, if it is negative we would have to start at the end of the imaginary part and go in the oposite direction when generating
ssize_t imag_direction = height < 0 ? -1 : 1;
float c_start_real = creal(start);
float c_start_imag = height > 0 ? cimag(start) : creal(start) + (imag_direction * height * res);;
float c_start_imag = height > 0 ? cimag(start) : cimag(start) + ((actual_height-1) * res);;
float vertical_step = imag_direction * res;