Fix selection feedback when we have foreground/background color w/alpha=0 (fix #1133)

This commit is contained in:
David Capello 2016-05-13 16:00:19 -03:00
parent 035916dce3
commit cf380ab1a2

View File

@ -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