Summary Files Commits Branches @commit @diff @stats
path: root / src / LEDVideoWall.cpp
diff options
context:
space:
mode:
Commitd61cdb2d96f50f380667d88762cc8d27a0875f3a (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-07-23 14:42:17 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-07-23 14:42:17 +0300
Files9d2ae728073928f547fd8fcb6ae263a2107fd2dd /src/LEDVideoWall.cpp
screen-generator-nemetschek-d61cdb2d96f50f380667d88762cc8d27a0875f3a.tar
screen-generator-nemetschek-d61cdb2d96f50f380667d88762cc8d27a0875f3a.tar.gz
screen-generator-nemetschek-d61cdb2d96f50f380667d88762cc8d27a0875f3a.zip
Parent92630c6d0a1928e6f112013a45b9b681d55c1d63 (diff)
feat: Minor logic fixes
Updated variables names and added breaks where necessary
1 files changed, 4 insertions, 2 deletions
-rw-r--r--src/LEDVideoWall.cpp6
diff --git a/src/LEDVideoWall.cpp b/src/LEDVideoWall.cpp
index f4f4e16..e235aa2 100644
--- a/src/LEDVideoWall.cpp
+++ b/src/LEDVideoWall.cpp
@@ -76,10 +76,11 @@ LEDVideoWall* LEDVideoWall::fromCommandLine() {
std::cerr << "The wall width or height cannot be zero!" << std::endl;
continue;
}
- if (iwall_max_width < panel_width || iwall_max_height < panel_height) {
+ if (iwall_max_width < ipanel_width || iwall_max_height < ipanel_height) {
std::cerr << "The wall cannot be smaller than the panel!" << std::endl;
continue;
}
+ break;
} while (true);
return LEDVideoWall::Freeform(ipanel_width, ipanel_height, iwall_max_width, iwall_max_height);
@@ -99,9 +100,10 @@ LEDVideoWall* LEDVideoWall::fromCommandLine() {
std::cerr << "The aspect ratio width or height cannot be zero!" << std::endl;
continue;
}
+ break;
} while (true);
- return LEDVideoWall::Aspect(ipanel_width, ipanel_height, i_width, i_height);
+ return LEDVideoWall::Aspect(ipanel_width, ipanel_height, iaspect_width, iaspect_height);
};
}
throw std::logic_error("Implementation error: didn't handle all types of LED video walls!");