diff options
author | 2025-02-05 14:12:59 -0800 | |
---|---|---|
committer | 2025-02-05 14:12:59 -0800 | |
commit | 3f9ee01a0bcd2b06bd53359cfd2c18a717f66eb6 (patch) | |
tree | d33a559ce9ad741c1b6eb6a7e4d5d1fe80c33a96 /cmds/flatland/Main.cpp | |
parent | f7d8ed5ac5fc88962d20daa5804975a62f3d131b (diff) | |
parent | bddaa2414e35c6e455de0863a2e91ade3695bf59 (diff) |
Merge "SF: Turn DisplayId::fromValue to an explicit wrapper" into main
Diffstat (limited to 'cmds/flatland/Main.cpp')
-rw-r--r-- | cmds/flatland/Main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/flatland/Main.cpp b/cmds/flatland/Main.cpp index 6d14d568a4..277300d20f 100644 --- a/cmds/flatland/Main.cpp +++ b/cmds/flatland/Main.cpp @@ -772,8 +772,8 @@ int main(int argc, char** argv) { break; case 'i': - displayId = DisplayId::fromValue<PhysicalDisplayId>(atoll(optarg)); - if (!displayId) { + displayId = PhysicalDisplayId::fromValue(atoll(optarg)); + if (std::find(ids.begin(), ids.end(), displayId) == ids.end()) { fprintf(stderr, "Invalid display ID: %s.\n", optarg); exit(4); } |