math error

This commit is contained in:
tth 2022-03-10 16:59:37 +01:00
parent 0cdb977a82
commit af92ce4e2e

View File

@ -298,7 +298,7 @@ if (NULL==(fp=fopen(fname, "w"))) {
* some software (yes, povray, I look at you) doesn't like
* width and height on two separate lines.
*/
fprintf(fp, "P2\n%d %d\n65532\n\n", src->width, src->height);
fprintf(fp, "P2\n%d %d\n65535\n\n", src->width, src->height);
area = src->width * src->height;
maximum = fimg_get_maxvalue(src);