Skip to content

Commit

Permalink
Fix selection feedback when we have foreground/background color w/alp…
Browse files Browse the repository at this point in the history
…ha=0 (fix #1133)
  • Loading branch information
dacap committed May 13, 2016
1 parent 035916d commit cf380ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/blend_funcs.cpp
Expand Up @@ -134,7 +134,7 @@ color_t rgba_blender_merge(color_t backdrop, color_t src, int opacity)
color_t rgba_blender_neg_bw(color_t backdrop, color_t src, int opacity)
{
if (!(backdrop & rgba_a_mask))
return src;
return rgba(0, 0, 0, 255);
else if (rgba_luma(backdrop) < 128)
return rgba(255, 255, 255, 255);
else
Expand Down

0 comments on commit cf380ab

Please sign in to comment.