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

Commit c6465a54 authored by Marin Shalamanov's avatar Marin Shalamanov Committed by Android (Google) Code Review
Browse files

Merge "SF: Don't override active mode with desired mode" into sc-dev

parents ead2fee4 0c268c7a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -914,11 +914,6 @@ status_t SurfaceFlinger::getDynamicDisplayInfo(const sp<IBinder>& displayToken,
    }

    info->activeDisplayModeId = static_cast<int32_t>(display->getActiveMode()->getId().value());
    if (display->isPrimary()) {
        if (const auto mode = getDesiredActiveMode()) {
            info->activeDisplayModeId = static_cast<int32_t>(mode->modeId.value());
        }
    }

    const auto& supportedModes = display->getSupportedModes();
    info->supportedDisplayModes.clear();