mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-17 16:36:49 +00:00
VNC-151 Refactor ScreenSet logic for modern C++
This commit is contained in:
parent
28d9c6a467
commit
e30537250f
1 changed files with 2 additions and 2 deletions
|
|
@ -106,12 +106,12 @@ namespace rfb {
|
|||
|
||||
fb_rect.setXYWH(0, 0, fb_width, fb_height);
|
||||
|
||||
for (auto &screen: screens) {
|
||||
for (const auto &screen: screens) {
|
||||
if (screen.dimensions.is_empty())
|
||||
return false;
|
||||
if (!screen.dimensions.enclosed_by(fb_rect))
|
||||
return false;
|
||||
if (seen_ids.find(screen.id) != seen_ids.end())
|
||||
if (seen_ids.contains(screen.id))
|
||||
return false;
|
||||
seen_ids.insert(screen.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue