Lines 63-72
void aa_renderpalette(aa_context * c, __
Link Here
|
63 |
errors[0] = calloc(1, (x2 + 5) * sizeof(int)); |
63 |
errors[0] = calloc(1, (x2 + 5) * sizeof(int)); |
64 |
if (errors[0] == NULL) |
64 |
if (errors[0] == NULL) |
65 |
dither = AA_ERRORDISTRIB; |
65 |
dither = AA_ERRORDISTRIB; |
66 |
errors[0] += 3; |
|
|
67 |
errors[1] = calloc(1, (x2 + 5) * sizeof(int)); |
66 |
errors[1] = calloc(1, (x2 + 5) * sizeof(int)); |
68 |
if (errors[1] == NULL) |
67 |
if (errors[1] == NULL) |
69 |
free(errors[0]), dither = AA_ERRORDISTRIB; |
68 |
free(errors[0]), dither = AA_ERRORDISTRIB; |
|
|
69 |
errors[0] += 3; |
70 |
errors[1] += 3; |
70 |
errors[1] += 3; |
71 |
cur = 0; |
71 |
cur = 0; |
72 |
} |
72 |
} |