Fixed: Made negative sign handling and according direction consistent across all implemenatations

This commit is contained in:
Nikola
2026-07-13 22:42:47 +02:00
parent ee3b02db2d
commit c68d8c7c15
5 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -49,8 +49,8 @@ void tricorn(float complex start, size_t width, ssize_t height, float res, unsig
const size_t y_step = (abs_height+thread_count-1)/thread_count;
const float start_r = crealf(start);
const float start_i = cimagf(start);
const float directional_res = (flipped ? -1.0f: 1.0f)*res;
const float start_i = height > 0 ? cimag(start) : cimag(start) + (height * directional_res);
const_args* consts = malloc(sizeof(*consts));
consts->width = width;