diff --git a/main/lib/image/image.c b/main/lib/image/image.c index 8152810e1..507182feb 100644 --- a/main/lib/image/image.c +++ b/main/lib/image/image.c @@ -1096,9 +1096,9 @@ void IMAGE_compose(GB_IMG *dst, int dx, int dy, int dw, int dh, GB_IMG *src, int d[0] = ((s[0] - d[0]) * a) / 256 + d[0]; d[1] = ((s[1] - d[1]) * a) / 256 + d[1]; d[2] = ((s[2] - d[2]) * a) / 256 + d[2]; - if (d[3] < a) + if (d[3] > a) d[3] = a; - } + } d += 4; s += 4; }