type issues

This commit is contained in:
Mylloon 2024-04-24 19:22:24 +02:00
parent 3a7f8e7064
commit f3bc4d5abb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -102,17 +102,17 @@ draw(void *closure, struct scheduler *s)
{
struct mandelbrot_args *args = (struct mandelbrot_args *)closure;
unsigned int *image = args->image;
unsigned int start_x = args->start_x;
unsigned int start_y = args->start_y;
unsigned int end_x = args->end_x;
unsigned int end_y = args->end_y;
int start_x = args->start_x;
int start_y = args->start_y;
int end_x = args->end_x;
int end_y = args->end_y;
free(closure);
if((end_x - start_x) < CHUNK_SIZE && (end_y - start_y) < CHUNK_SIZE) {
// Si le morceau est petit alors on dessine
for(unsigned int y = start_y; y < end_y; y++) {
for(unsigned int x = start_x; x < end_x; x++) {
for(int y = start_y; y < end_y; y++) {
for(int x = start_x; x < end_x; x++) {
pixel(image, x, y);
}
}