fix two missing break

This commit is contained in:
tth 2022-01-27 10:29:37 +01:00
parent 879e25463b
commit 6aa802fde2

View File

@ -39,10 +39,12 @@ switch (head->type) {
if (head->G[foo] > maxval) maxval = head->G[foo];
if (head->B[foo] > maxval) maxval = head->B[foo];
}
break;
case FIMG_TYPE_GRAY:
for (foo=0; foo<surface; foo++) {
if (head->R[foo] > maxval) maxval = head->R[foo];
}
break;
}
return maxval;