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

Commit 3c28654a authored by Galia Peycheva's avatar Galia Peycheva
Browse files

Fix blur region alpha not fading during animations

Bug: 190606509
Test: m && flash && test on a window that fades
Change-Id: I9482e2b3188c1e831a60d4e2920b0798edb11015
parent 603a15d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2018,7 +2018,7 @@ int32_t Layer::getBackgroundBlurRadius() const {

const std::vector<BlurRegion> Layer::getBlurRegions() const {
    auto regionsCopy(getDrawingState().blurRegions);
    int layerAlpha = getAlpha();
    float layerAlpha = getAlpha();
    for (auto& region : regionsCopy) {
        region.alpha = region.alpha * layerAlpha;
    }