Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67a46b2f authored by William McVicker's avatar William McVicker Committed by Steve Kondik
Browse files

Update the layer's alpha value upon composition of the layer

Fixes: This patch makes sure that the layer's alpha value is
up-to-date and does not reflect the previous view's alpha value.
It fixes the square block on marquee fading edge when text view
is applied transparency.

CRs-Fixed: 562000

Change-Id: I397308b739f5f4fe4b630cf594825f401c97e0e3
parent b4cfbb3c
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -1087,7 +1087,17 @@ void OpenGLRenderer::composeLayer(sp<Snapshot> current, sp<Snapshot> previous) {
        }
        }
    } else if (!rect.isEmpty()) {
    } else if (!rect.isEmpty()) {
        dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);
        dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);

#ifdef QCOM_HARDWARE
        save(0);
        // the layer contains screen buffer content that shouldn't be alpha modulated
        // (and any necessary alpha modulation was handled drawing into the layer)
        mSnapshot->alpha = 1.0f;
#endif
        composeLayerRect(layer, rect, true);
        composeLayerRect(layer, rect, true);
#ifdef QCOM_HARDWARE
        restore();
#endif
    }
    }


    dirtyClip();
    dirtyClip();