mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 04:13:50 +00:00
Fix selection feedback when we have foreground/background color w/alpha=0 (fix #1133)
This commit is contained in:
parent
035916dce3
commit
cf380ab1a2
@ -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)
|
color_t rgba_blender_neg_bw(color_t backdrop, color_t src, int opacity)
|
||||||
{
|
{
|
||||||
if (!(backdrop & rgba_a_mask))
|
if (!(backdrop & rgba_a_mask))
|
||||||
return src;
|
return rgba(0, 0, 0, 255);
|
||||||
else if (rgba_luma(backdrop) < 128)
|
else if (rgba_luma(backdrop) < 128)
|
||||||
return rgba(255, 255, 255, 255);
|
return rgba(255, 255, 255, 255);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user