mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 21:41:02 +00:00
Fix Marquee Tool becomes invisible in the grayscale mode (fix #3274)
Before this fix, during the action of selecting an area (with any selection tool), the preview of the selection edge in grayscale Color Mode was not displayed (fix #3274).
This commit is contained in:
parent
7309c61c86
commit
e1caf39887
@ -1,5 +1,5 @@
|
||||
// Aseprite Document Library
|
||||
// Copyright (c) 2019-2020 Igara Studio S.A.
|
||||
// Copyright (c) 2019-2022 Igara Studio S.A.
|
||||
// Copyright (c) 2001-2017 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
@ -582,8 +582,8 @@ color_t graya_blender_merge(color_t backdrop, color_t src, int opacity)
|
||||
|
||||
color_t graya_blender_neg_bw(color_t backdrop, color_t src, int opacity)
|
||||
{
|
||||
if ((backdrop & graya_a_mask) == 0)
|
||||
return src;
|
||||
if (!(backdrop & graya_a_mask))
|
||||
return graya(0, 255);
|
||||
else if (graya_getv(backdrop) < 128)
|
||||
return graya(255, 255);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user