Fix selection feedback in indexed when mask color w/alpha=0 (fix #1412, fix #1667)

Also reported recently here (and probably in several other places):
https://community.aseprite.org/t/8462
This commit is contained in:
David Capello 2021-04-09 11:11:41 -03:00
parent 64f96f0851
commit f311e3edde

View File

@ -247,9 +247,8 @@ public:
RgbMap* getRgbMap() override {
if (!m_rgbMap) {
Sprite::RgbMapFor forLayer =
((!m_layer ||
m_layer->isBackground() ||
m_sprite->pixelFormat() == IMAGE_RGB) ?
(((m_layer && m_layer->isBackground()) ||
(m_sprite->pixelFormat() == IMAGE_RGB)) ?
Sprite::RgbMapFor::OpaqueLayer:
Sprite::RgbMapFor::TransparentLayer);
m_rgbMap = m_sprite->rgbMap(m_frame, forLayer);