FIXED: Memory leaks and unused color table
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user