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

Commit 3eaebefc authored by Gil Dekel's avatar Gil Dekel
Browse files

cmds: Update DisplayId usage

DisplayId::fromValue() was modified to return an unwrapped DisplayId
object.

Update call-sites.

Flag: com.android.graphics.surfaceflinger.flags.stable_edid_ids
Bug: 393193354
Test: N/A
Change-Id: I27ef5b4af5ef3cc936857102ae13c071c6b720d4
parent 462c24b3
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1382,14 +1382,16 @@ int main(int argc, char* const argv[]) {
            }
            break;
        case 'd':
            if (const auto id = android::DisplayId::fromValue<PhysicalDisplayId>(atoll(optarg));
                id && SurfaceComposerClient::getPhysicalDisplayToken(*id)) {
                gPhysicalDisplayId = *id;
        {
            const PhysicalDisplayId id = android::PhysicalDisplayId::fromValue(atoll(optarg));
            if (SurfaceComposerClient::getPhysicalDisplayToken(id)) {
                gPhysicalDisplayId = id;
                break;
            }

            fprintf(stderr, "Invalid physical display ID\n");
            return 2;
        }
        case 'S':
            gSecureDisplay = true;
            break;