forked from tTh/FloatImg
fix two missing break
This commit is contained in:
parent
879e25463b
commit
6aa802fde2
@ -39,10 +39,12 @@ switch (head->type) {
|
|||||||
if (head->G[foo] > maxval) maxval = head->G[foo];
|
if (head->G[foo] > maxval) maxval = head->G[foo];
|
||||||
if (head->B[foo] > maxval) maxval = head->B[foo];
|
if (head->B[foo] > maxval) maxval = head->B[foo];
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case FIMG_TYPE_GRAY:
|
case FIMG_TYPE_GRAY:
|
||||||
for (foo=0; foo<surface; foo++) {
|
for (foo=0; foo<surface; foo++) {
|
||||||
if (head->R[foo] > maxval) maxval = head->R[foo];
|
if (head->R[foo] > maxval) maxval = head->R[foo];
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return maxval;
|
return maxval;
|
||||||
|
Loading…
Reference in New Issue
Block a user