fixing random bugs

This commit is contained in:
2019-09-17 13:14:33 +02:00
parent 9f5d5e2763
commit d294102ca4
4 changed files with 5 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ for (foo=0; foo<(head->width*head->height); foo++) {
add = head->R[foo];
add += head->G[foo];
add += head->B[foo];
head->R[foo] = head->G[foo] = head->B[foo] = add;
head->R[foo] = head->G[foo] = head->B[foo] = add / 3.0;
}
return -1;
}