Skip to content

Commit

Permalink
make C and vector path for composite match
Browse files Browse the repository at this point in the history
one was <, one was <= for HARD_LIGHT
no effect on result, but it's better if they are consistent
  • Loading branch information
jcupitt committed Jun 3, 2022
1 parent af23e9f commit cb1927e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvips/conversion/composite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ vips_composite_base_blend3( VipsCompositeSequence *seq,
break;

case VIPS_BLEND_MODE_HARD_LIGHT:
f = A < 0.5 ?
f = A <= 0.5 ?
2 * A * B :
1 - 2 * (1 - A) * (1 - B);
break;
Expand Down

0 comments on commit cb1927e

Please sign in to comment.