FIXED: Memory leaks and unused color table

This commit is contained in:
Nikola
2026-09-01 19:10:07 +03:00
parent f0207a75e8
commit a77a9c06dc
4 changed files with 15 additions and 13 deletions
+3 -3
View File
@@ -120,9 +120,9 @@ void tricorn_V2(float complex start, size_t width, ssize_t height, float res, un
img[position] = value;
}
else {
img[position] = ((value*3) % 255);
img[position + 1] = ((value*2) % 255);
img[position + 2] = ((value*5) % 255);
img[position] = color_lookup_table[value][0];
img[position + 1] = color_lookup_table[value][1];
img[position + 2] = color_lookup_table[value][2];
}
}